Skip to content

Commit

Permalink
use nginx alpine image
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-shaw committed Nov 24, 2024
1 parent 648d1fb commit 6b75c28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM nginx:stable
FROM nginx:stable-alpine

RUN rm /etc/nginx/conf.d/default.conf && \
RUN apk update && apk add --no-cache openssl && \
mkdir /etc/nginx/ssl && \
openssl req -x509 -noenc -newkey rsa:2048 -keyout /etc/nginx/ssl/key.pem -out /etc/nginx/ssl/req.pem -days 90 -subj "/C=GB/ST=Devon/L=Plymouth/O=HM Land Registry/OU=Digital/CN=localhost"

Expand Down

0 comments on commit 6b75c28

Please sign in to comment.