aboutsummaryrefslogtreecommitdiffstats
path: root/dev/Dockerfile
blob: 0b35724afdae01936611d8d0086b03bfe7f0e209 (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.10-slim


# Install project dependencies
WORKDIR /app
COPY pyproject.toml poetry.lock ./
RUN poetry install --no-root

# Copy the source code in last to optimize rebuilding the image
COPY . .

# Install again, this time with the root project
RUN poetry install

ENTRYPOINT ["python"]
CMD ["-m", "bot"]