-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (24 loc) · 803 Bytes
/
Dockerfile
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
FROM python:3.10-slim-buster
ARG ENV
ENV ENV=${ENV} \
PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1 \
PYTHONHASHSEED=random \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
POETRY_VERSION=1.5.0 \
TZ="Europe/Moscow"
RUN pip install "poetry==$POETRY_VERSION"
WORKDIR /app
COPY poetry.lock pyproject.toml /app/
RUN apt-get update && \
apt-get -y install --reinstall build-essential && \
apt-get -y install gcc mono-mcs && \
rm -rf /var/lib/apt/lists/*
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi --with uvloop,sentry,redis,keyboards,database,scheduler \
&& mkdir -p /data
COPY . /app
STOPSIGNAL SIGINT
ENTRYPOINT [ "poetry", "run", "python3", "-m", "bot_template" ]