mirror of
https://github.com/timothymiller/cloudflare-ddns.git
synced 2026-03-21 22:48:57 -03:00
Minimal multi-stage docker build
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
# ---- Base ----
|
||||
FROM python:alpine AS base
|
||||
|
||||
#
|
||||
# ---- Dependencies ----
|
||||
FROM base AS dependencies
|
||||
# install dependencies
|
||||
COPY requirements.txt .
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
#
|
||||
# ---- Release ----
|
||||
FROM dependencies AS release
|
||||
# copy project file(s)
|
||||
WORKDIR /
|
||||
COPY cloudflare-ddns.py .
|
||||
COPY config.json .
|
||||
CMD ["python", "/cloudflare-ddns.py"]
|
||||
Reference in New Issue
Block a user