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.
2 parents fecf30c + 0ca6233 commit 9a295bbCopy full SHA for 9a295bb
Dockerfile
@@ -6,12 +6,13 @@ FROM python:alpine AS base
6
FROM base AS dependencies
7
# install dependencies
8
COPY requirements.txt .
9
-RUN pip install -r requirements.txt
10
-
+RUN pip install --user -r requirements.txt
+
11
#
12
# ---- Release ----
13
-FROM dependencies AS release
14
-# copy project source file(s)
+FROM base AS release
+# copy installed dependencies and project source file(s)
15
WORKDIR /
16
+COPY --from=dependencies /root/.local /root/.local
17
COPY cloudflare-ddns.py .
-CMD ["python", "-u", "/cloudflare-ddns.py", "--repeat"]
18
+CMD ["python", "-u", "/cloudflare-ddns.py", "--repeat"]
0 commit comments