-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (24 loc) · 735 Bytes
/
Copy pathDockerfile
File metadata and controls
34 lines (24 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM python:3.13-slim-bookworm
ENV PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y \
locales \
libgbm-dev \
gcc \
pkg-config \
default-libmysqlclient-dev \
libsqlite3-dev
RUN echo "de_DE.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen && \
update-locale LC_ALL=de_DE.UTF-8 LANG=de_DE.UTF-8
# Setze die Zeitzone im Container
RUN ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime && echo "Europe/Berlin" > /etc/timezone
WORKDIR /code
COPY requirements-prod.txt .
RUN pip install --no-cache-dir -r requirements-prod.txt
COPY run.py ./
COPY app/ ./app/
COPY favicon.ico .env ./
# ist in diesem fall das gleiche
# COPY ./.env ./
# Startbefehl ohne Server
CMD ["python3", "run.py"]