discord-pschitt/Dockerfile
Dryusdan e1c8cac2d7
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Fix typo
2024-01-04 17:32:02 +01:00

19 lines
445 B
Docker

FROM python:3.11-alpine
COPY ./ /app
WORKDIR /app
ENV TZ Europe/Paris
RUN cp /usr/share/zoneinfo/$TZ /etc/localtime \
&& echo $TZ > /etc/timezone \
&& apk add -U --no-cache --virtual builds gcc musl-dev libffi-dev \
&& pip3 install --upgrade pip \
&& pip3 install poetry \
&& poetry config virtualenvs.create false --local \
&& poetry install --only main \
&& apk del builds
CMD poetry run python3 src/main.py