flaskdockernew / Dockerfile
MySafeCode's picture
Update Dockerfile
0f87280 verified
Raw
History Blame
296 Bytes
FROM python:3.11-slim-bullseye
RUN apt-get update && apt-get install -y libsdl2-2.0-0 libfreetype6
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
ENV SDL_VIDEODRIVER=dummy
ENV PYGAME_HIDE_SUPPORT_PROMPT=1
EXPOSE 7860
CMD ["python", "app.py"]