This commit is contained in:
14
Containerfile
Normal file
14
Containerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM python:3-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
|
||||
|
||||
COPY * /app/
|
||||
COPY requirements.txt requirements.txt
|
||||
RUN pip3 install -r requirements.txt
|
||||
|
||||
CMD ["python", "/app/main.py"]
|
||||
Reference in New Issue
Block a user