blob: 43fcdf5a9ac3c2bd76a2bf939961cfefc780d3e0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
FROM --platform=linux/amd64 ghcr.io/chrislovering/python-poetry-base:3.10-slim
# Install dependencies
WORKDIR /bot
COPY pyproject.toml poetry.lock ./
RUN poetry install --without dev
# Set SHA build argument
ARG git_sha="development"
ENV GIT_SHA=$git_sha
# Copy the rest of the project code
COPY . .
# Start the bot
ENTRYPOINT ["poetry", "run"]
CMD ["python", "-m", "bot"]
|