We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a285ad7 commit 6694742Copy full SHA for 6694742
Dockerfile
@@ -1,10 +1,15 @@
1
-FROM python:3.13-alpine
+FROM python:3.13-alpine AS base
2
3
WORKDIR /usr/src/app
4
RUN mkdir -p /data
5
COPY dist ./dist/
6
RUN pip install --no-cache-dir dist/openpectus_database_administration.tar.gz
7
-RUN pip install openpectus --no-deps
+RUN pip install openpectus --no-deps --no-cache-dir
8
+RUN rm -R ./dist
9
+
10
+# Squash layers to reduce image size
11
+FROM scratch
12
+COPY --from=base / /
13
14
EXPOSE 8301
-CMD pectus-database-administration --host 0.0.0.0 --port 8301 --database /data/open_pectus_aggregator.sqlite3
15
+CMD pectus-database-administration --host 0.0.0.0 --port 8301 --database /data/open_pectus_aggregator.sqlite3
0 commit comments