We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0928c01 commit 423c1b2Copy full SHA for 423c1b2
2 files changed
Dockerfile
@@ -42,9 +42,11 @@ COPY server/ ./server
42
43
# Get Login.gov Certs
44
COPY bin/copy_certs.sh ./
45
+COPY certs/ ./certs
46
47
RUN /opt/api/copy_certs.sh
48
49
+
50
#see https://docs.cloudfoundry.org/devguide/deploy-apps/push-docker.html
51
COPY docker/conf/passwd /etc/passwd
52
bin/copy_certs.sh
@@ -1,9 +1,11 @@
1
#!/bin/bash
2
3
if [ "$NODE_ENV" = "production" ]; then
4
- cp /app/certs/prod/* /app/server/certs/
+ cp /opt/api/certs/prod/* /opt/api/server/certs/
5
elif [ "$NODE_ENV" = "staging" ]; then
6
- cp /app/certs/staging/* /app/server/certs/
+ cp /opt/api/certs/staging/* /opt/api/server/certs/
7
else
8
- cp /app/certs/dev/* /app/server/certs/
9
-fi
+ cp /opt/api/certs/dev/* /opt/api/server/certs/
+fi
10
11
+rm -rf /opt/api/certs
0 commit comments