did not work so i decided not to copy a dir that doesn't exist
This commit is contained in:
@@ -19,9 +19,9 @@ RUN curl -fSL https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz -o nginx.ta
|
|||||||
--http-log-path=/var/log/nginx/access.log \
|
--http-log-path=/var/log/nginx/access.log \
|
||||||
--pid-path=/var/run/nginx.pid \
|
--pid-path=/var/run/nginx.pid \
|
||||||
--lock-path=/var/run/nginx.lock \
|
--lock-path=/var/run/nginx.lock \
|
||||||
--with-http_ssl_module=dynamic \
|
--with-http_ssl_module \
|
||||||
--with-http_v2_module=dynamic \
|
--with-http_v2_module \
|
||||||
--with-http_gzip_static_module=dynamic \
|
--with-http_gzip_static_module \
|
||||||
&& make && make install
|
&& make && make install
|
||||||
|
|
||||||
# --- Stage 2: runtime ---
|
# --- Stage 2: runtime ---
|
||||||
@@ -34,7 +34,6 @@ RUN apk add --no-cache pcre2 zlib openssl ca-certificates wget \
|
|||||||
|
|
||||||
COPY --from=builder /usr/sbin/nginx /usr/sbin/nginx
|
COPY --from=builder /usr/sbin/nginx /usr/sbin/nginx
|
||||||
COPY --from=builder /etc/nginx /etc/nginx
|
COPY --from=builder /etc/nginx /etc/nginx
|
||||||
COPY --from=builder /usr/lib/nginx /usr/lib/nginx
|
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
||||||
EXPOSE 80 443
|
EXPOSE 80 443
|
||||||
|
|||||||
Reference in New Issue
Block a user