aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 7428ec7b12ba1876d5392a0fdcc936ceaf49054c (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/owl-corp/python-poetry-base:3.12-slim

# Install dependencies
WORKDIR /bot
COPY pyproject.toml poetry.lock ./
RUN poetry install --only main

# 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"]