geminip / Dockerfile
heixxin's picture
Upload 6 files
793a36a verified
raw
history blame contribute delete
396 Bytes
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
&& pip install -r requirements.txt \
&& apt-get purge -y gcc \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
COPY main.py .
COPY templates/ templates/
RUN mkdir -p generated_images
CMD ["python", "-u", "main.py"]