19 lines
278 B
Docker
19 lines
278 B
Docker
FROM python:3.12-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
FLASK_HOST=0.0.0.0 \
|
|
FLASK_DEBUG=0 \
|
|
PORT=5050
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 5050
|
|
|
|
CMD ["python", "app.py"]
|