flaskdockernew / Dockerfile
MySafeCode's picture
Update Dockerfile
94cbc8c verified
raw
history blame contribute delete
352 Bytes
FROM python:3.11-slim-bullseye
RUN apt-get update && apt-get install -y \
libsdl2-2.0-0 \
libfreetype6 \
&& rm -rf /var/lib/apt/lists/*
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"]