- changed volumes to be local to the repo
- added volumes/ dir in gitignore
This commit is contained in:
@@ -22,14 +22,14 @@ RUN adduser -S www-data && \
|
||||
|
||||
# ARG variables are not persistent after the build process, in opposite to ENV
|
||||
ARG WP_URL
|
||||
ARG MAX_UPLOAD_SIZE
|
||||
ARG WP_VOLUME_DIR
|
||||
ARG NG_VOLUME_CERTS
|
||||
ARG SERVER_MAX_UPLOAD_SIZE
|
||||
|
||||
# replace WP_URL
|
||||
RUN sed -i "s/\${WP_URL}/${WP_URL}/g" /etc/nginx/http.d/nginx_http_server.conf
|
||||
# replace max file size upload
|
||||
RUN sed -i "s/\(client_max_body_size \).*\(m;\)/\1${MAX_UPLOAD_SIZE}\2/g" /etc/nginx/nginx.conf
|
||||
RUN sed -i "s/\(client_max_body_size \).*\(m;\)/\1${SERVER_MAX_UPLOAD_SIZE}\2/g" /etc/nginx/nginx.conf
|
||||
|
||||
# create ssl certificates
|
||||
# command openssl :
|
||||
|
||||
Reference in New Issue
Block a user