generated from rexzhang/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
33 lines (25 loc) · 905 Bytes
/
Dockerfile.dev
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
33
FROM ray1ex/ddns-clienter-base
COPY ddns_clienter /app/ddns_clienter
COPY ddns_clienter_core /app/ddns_clienter_core
#COPY requirements /app/requirements
COPY manage.py /app
COPY runserver.py /app
COPY entrypoint.sh /app
WORKDIR /app
EXPOSE 8000
ENV PYTHONPATH=/app
ENV TLDEXTRACT_CACHE_PATH=/data/lexicon_tld_set
ENV DJANGO_SETTINGS_MODULE="ddns_clienter.settings"
ENV DATA_PATH="/data"
ENV CONFIG_TOML="/etc/ddns-clienter.toml"
ENV PBULIC_INSIDE_API="true"
ENV WORK_IN_CONTAINER="true"
ENV SENTRY_DSN=""
# i18n
RUN ./manage.py compilemessages --ignore venv \
&& ./manage.py collectstatic --no-input
CMD /app/entrypoint.sh
LABEL org.opencontainers.image.title="DDNS Clienter"
LABEL org.opencontainers.image.authors="Rex Zhang"
LABEL org.opencontainers.image.url="https://hub.docker.com/r/ray1ex/ddns-clienter"
LABEL org.opencontainers.image.source="https://github.com/rexzhang/ddns-clienter"