blob: 794f1573a1dcc160c3a4b1a9829cf3ed51bf111c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
FROM --platform=linux/amd64 ghcr.io/chrislovering/python-poetry-base:3.11-slim
# Define Git SHA build argument for sentry
ARG git_sha="development"
ENV GIT_SHA=$git_sha
# Install project dependencies
WORKDIR /bot
COPY pyproject.toml poetry.lock ./
RUN poetry install --without dev
# Copy the source code in last to optimize rebuilding the image
COPY . .
ENTRYPOINT ["poetry"]
CMD ["run", "python", "-m", "bot"]
|