10 lines
306 B
Docker
10 lines
306 B
Docker
FROM nginx:alpine
|
|
|
|
RUN apk add --no-cache openssl
|
|
|
|
RUN mkdir -p /etc/nginx/ssl/
|
|
RUN openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.sebson.site.com"
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
|