Dockerfile 210 B

123456789
  1. FROM python:3.10.13-alpine3.18
  2. WORKDIR /app
  3. COPY app.py /app/.
  4. COPY requirements.txt /app/.
  5. RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt
  6. CMD [ "flask", "run", "-p", "8080" ]