We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8550296 commit bd23368Copy full SHA for bd23368
1 file changed
‎Dockerfile‎
@@ -2,10 +2,9 @@ FROM nginx:alpine
2
COPY nginx.conf /etc/nginx/nginx.conf
3
4
RUN \
5
- apk install openssl \
6
- mkdir /etc/ssl/private \
7
- chmod 744 nginx.key \
8
- mkdir /etc/ssl/certs \
9
- chmod 744 nginx.crt \
+ apk install openssl && \
+ mkdir /etc/ssl/private && \
+ mkdir /etc/ssl/certs && \
10
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/nginx.key -out /etc/ssl/certs/nginx.crt
+
11
EXPOSE 443
0 commit comments