OpenSTR/Dockerfile

12 lines
No EOL
210 B
Docker

FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app
ENV FLASK_APP=run.py
ENV FLASK_ENV=production
CMD ["flask", "run", "--host=0.0.0.0"]