-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (26 loc) · 729 Bytes
/
Dockerfile
File metadata and controls
32 lines (26 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM codeworksio/python:3.6-20180212
ENV DNSOMATIC_USERNAME="username" \
DNSOMATIC_PASSWORD="password" \
DNSOMATIC_DELAY="60" \
DNSOMATIC_INTERVAL="60" \
DNSOMATIC_TRIES="0"
RUN set -ex; \
\
pip install \
pytz \
requests
COPY assets/ /
CMD [ "python", "-u", "/usr/local/bin/dnsomatic.py" ]
### METADATA ###################################################################
ARG IMAGE
ARG BUILD_DATE
ARG VERSION
ARG VCS_REF
ARG VCS_URL
LABEL \
org.label-schema.name=$IMAGE \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.version=$VERSION \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=$VCS_URL \
org.label-schema.schema-version="1.0"