aboutsummaryrefslogtreecommitdiffstats
path: root/examples/Dockerfile.example
blob: a80d23d6e443c77351d7acae09674fd5625caec5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
FROM --platform=linux/amd64 ghcr.io/owl-corp/python-poetry-base:3-slim

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

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

ENTRYPOINT ["poetry"]
CMD ["run", "python", "-m", "app"]