Files
CoupleQuestions/Containerfile
T
SecretMineDE edc651ee88
Build image / build-image (push) Successful in 25s
pin dependencies
2026-04-05 10:30:15 +02:00

19 lines
522 B
Docker

FROM python:3.14-slim-trixie
RUN apt-get update && \
apt-get install -y \
locales && \
rm -r /var/lib/apt/lists/*
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
sed -i -e 's/# de_DE.UTF-8 UTF-8/de_DE.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . /app/
CMD ["python3", "-m", "flask", "run", "--host=0.0.0.0"]