aboutsummaryrefslogtreecommitdiffstats
path: root/examples/Dockerfile.example
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Dockerfile.example')
-rw-r--r--examples/Dockerfile.example12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/Dockerfile.example b/examples/Dockerfile.example
new file mode 100644
index 0000000..a80d23d
--- /dev/null
+++ b/examples/Dockerfile.example
@@ -0,0 +1,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"]