chore: add Dockerfile and compose.yml
This commit is contained in:
parent
486e58d3f4
commit
07c609de87
4 changed files with 25 additions and 0 deletions
15
Dockerfile
Normal file
15
Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
|||
FROM python:3.12-bookworm
|
||||
STOPSIGNAL SIGINT
|
||||
WORKDIR /app
|
||||
|
||||
# make ru_RU.UTF-8 locale available
|
||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install \
|
||||
--no-install-recommends -y locales && rm -r /var/lib/apt/lists/* && \
|
||||
printf "en_US.UTF-8 UTF-8\nru_RU.UTF-8 UTF-8" >/etc/locale.gen && \
|
||||
dpkg-reconfigure --frontend=noninteractive locales
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
COPY main.py .
|
||||
CMD ["python3", "-u", "main.py"]
|
Loading…
Add table
Add a link
Reference in a new issue