blob: af9f5308c962c88d2d21031fddc4415aaaa8f78f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
FROM 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", "run"]
CMD ["python", "-m", "app"]
|