Commit a341564c authored by nanahira's avatar nanahira

order

parent 26a5c5a4
Pipeline #15613 passed with stages
in 33 minutes and 24 seconds
...@@ -12,10 +12,6 @@ RUN npm run build ...@@ -12,10 +12,6 @@ RUN npm run build
FROM base FROM base
ENV NODE_ENV production ENV NODE_ENV production
RUN npm ci && npm cache clean --force
COPY --from=builder /etc/nginx/generator/dist ./dist
COPY ./views ./views
RUN set -x && \ RUN set -x && \
addgroup -g 101 -S nginx && \ addgroup -g 101 -S nginx && \
adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx && \ adduser -S -D -H -u 101 -h /var/cache/nginx -s /sbin/nologin -G nginx -g nginx nginx && \
...@@ -52,6 +48,10 @@ RUN set -x && \ ...@@ -52,6 +48,10 @@ RUN set -x && \
openssl dhparam 4096 > /etc/nginx/generated/dhparam.pem && \ openssl dhparam 4096 > /etc/nginx/generated/dhparam.pem && \
openssl rand 80 > /etc/nginx/generated/ticket.key openssl rand 80 > /etc/nginx/generated/ticket.key
RUN npm ci && npm cache clean --force
COPY --from=builder /etc/nginx/generator/dist ./dist
COPY ./views ./views
COPY ./views/dummy /usr/lib/nginx-plus/check-subscription COPY ./views/dummy /usr/lib/nginx-plus/check-subscription
EXPOSE 80 443 EXPOSE 80 443
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment