Restore previous nginx Dockerfile
TODO: Update SSL nginx configuration https://github.com/mjanez/ckan-docker/issues/67
This commit is contained in:
parent
7ea93fcb9b
commit
0ec2f2adde
|
@ -15,21 +15,11 @@ ENV NGINX_LOG_DIR=/var/log/nginx
|
|||
ENV NGINX_DIR=/etc/nginx
|
||||
|
||||
RUN mkdir -p ${NGINX_LOG_DIR} && \
|
||||
mkdir -p ${NGINX_DIR}/certs && \
|
||||
apk update --no-cache && \
|
||||
apk upgrade --no-cache && \
|
||||
apk add --no-cache openssl
|
||||
mkdir -p ${NGINX_DIR}/certs
|
||||
|
||||
COPY setup/nginx.conf ${NGINX_DIR}/nginx.conf
|
||||
COPY setup/index.html /usr/share/nginx/html/index.html
|
||||
COPY setup/default.conf.template ${NGINX_DIR}/templates/default.conf.template
|
||||
COPY setup/ckan-local.* ${NGINX_DIR}/certs/
|
||||
|
||||
ENTRYPOINT \
|
||||
openssl req \
|
||||
-subj '/C=DE/ST=Berlin/L=Berlin/O=None/CN=${PROXY_SERVER_NAME}' \
|
||||
-x509 -newkey rsa:4096 \
|
||||
-nodes -keyout /etc/nginx/ssl/default_key.pem \
|
||||
-keyout ${NGINX_DIR}/certs/ckan-local.key \
|
||||
-out ${NGINX_DIR}/certs/ckan-local.crt \
|
||||
-days 365 && \
|
||||
nginx -g 'daemon off;'
|
||||
EXPOSE ${NGINX_PORT}
|
Loading…
Reference in New Issue