Skip to content

Commit ff27ae9

Browse files
committed
Install, generate cert and cleanup together
1 parent 757674c commit ff27ae9

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.dockerignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.git
22
node_modules
3-
*.png
3+
*.png
4+
screenshots

Dockerfile

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@ WORKDIR /app
44

55
COPY . .
66

7-
RUN rm -rf screenshots/
8-
97
RUN npm install --production
108

11-
RUN apk --no-cache add openssl
12-
13-
RUN sh generate-cert.sh
9+
RUN apk --no-cache add openssl && sh generate-cert.sh && rm -rf /var/cache/apk/*
1410

1511
EXPOSE 80 443
1612

0 commit comments

Comments
 (0)