blob: 128b9c5823b1cf85623854f2bdec55228d1247c4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
FROM --platform=linux/amd64 ghcr.io/owl-corp/python-poetry-base:3.12-slim
# Install build dependencies
RUN apt-get update && apt-get install --no-install-recommends -y libmagickwand-dev && apt autoclean && rm -rf /var/lib/apt/lists/*
# Install project dependencies
WORKDIR /app
COPY pyproject.toml poetry.lock ./
RUN poetry install --without dev --no-root
# Set Git SHA environment variable for Sentry
ARG git_sha="development"
ENV GIT_SHA=$git_sha
# Copy the source code in last to optimize rebuilding the image
COPY . .
ENTRYPOINT ["poetry", "run", "python"]
CMD ["-m", "arthur"]
|