otp / Dockerfile
Fourstore's picture
Update Dockerfile
5739aa1 verified
raw
history blame contribute delete
299 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends gcc && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV PORT=7860
ENV PYTHONUNBUFFERED=1
EXPOSE 7860
CMD ["python", "app.py"]