Skip to content

Commit

Permalink
Update nginx Docker file
Browse files Browse the repository at this point in the history
- install openssl
  • Loading branch information
gek20 authored and hjhsalo committed Aug 8, 2024
1 parent f91129a commit 9846594
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ EXPOSE 80 443

RUN rm /etc/nginx/conf.d/*.conf
RUN mkdir -p /etc/ssl/
RUN apk update \
&& apk add openssl
RUN openssl genrsa -out /etc/ssl/b2share.key 2048
RUN openssl req -new -key /etc/ssl/b2share.key -out /etc/ssl/b2share.csr -subj "/C=CH/ST=Geneva/L=Geneva/O=B2Share Test Certificate/OU=B2Share/CN=example.com"
RUN openssl req -x509 -days 365 -key /etc/ssl/b2share.key -in /etc/ssl/b2share.csr -out /etc/ssl/b2share.crt
Expand Down

0 comments on commit 9846594

Please sign in to comment.