Browse Source

Build arg for GPG key generation

Andrey Volkov 6 months ago
parent
commit
03c7583721
1 changed files with 9 additions and 5 deletions
  1. 9
    5
      Dockerfile

+ 9
- 5
Dockerfile View File

@@ -50,12 +50,16 @@ RUN rm /etc/nginx/sites-enabled/*
50 50
 COPY assets/supervisord.nginx.conf /etc/supervisor/conf.d/nginx.conf
51 51
 RUN echo "daemon off;" >> /etc/nginx/nginx.conf
52 52
 
53
-ENV FULL_NAME="First Last"
54
-ENV EMAIL_ADDRESS="youremail@example.com"
55
-ENV GPG_PASSWORD="PickAPassword"
56
-ENV HOSTNAME=localhost
57
-
53
+ARG FULL_NAME="First Last"
54
+ARG EMAIL_ADDRESS="youremail@example.com"
55
+ARG GPG_PASSWORD="PickAPassword"
56
+ARG HOSTNAME=localhost
58 57
 ARG MODE=packages
58
+
59
+ENV FULL_NAME ${FULL_NAME}
60
+ENV EMAIL_ADDRESS ${EMAIL_ADDRESS}
61
+ENV GPG_PASSWORD ${GPG_PASSWORD}
62
+ENV HOSTNAME ${HOSTNAME}
59 63
 ENV MODE ${MODE}
60 64
 
61 65
 COPY assets/packages /opt/packages

Loading…
Cancel
Save