Updated dockerfile
Build and Push Alpine NGINX Image to docker.io Registry / Build and push image (root user) (push) Successful in 42s Details
Build and Push Alpine NGINX Image to docker.io Registry / Build and push image (rootless) (push) Failing after 14s Details
Build and Push Alpine NodeJS Image to Winter Access Registry / Build and push image (Root User) (push) Successful in 12s Details
Build and Push Alpine NodeJS Image to Winter Access Registry / Build and push image (rootless) (push) Failing after 10s Details

This commit is contained in:
Aditya Prima 2024-07-23 19:10:05 +07:00
parent 0a55c3af5c
commit 97a472db7c
2 changed files with 4 additions and 1 deletions

View File

@ -20,6 +20,8 @@ ADD ./etc/nginx/conf.d /etc/nginx/conf.d
ADD ./app . ADD ./app .
RUN mkdir -p /var/run/nginx
# CLEAR CACHE # CLEAR CACHE
RUN apk del curl && \ RUN apk del curl && \
rm -rf /var/cache/apk/* rm -rf /var/cache/apk/*

View File

@ -23,7 +23,8 @@ ADD ./etc/nginx/conf.d /etc/nginx/conf.d
ADD ./app . ADD ./app .
RUN touch /var/run/nginx.pid && chown nginx:nginx /var/run/nginx.pid # RUN touch /var/run/nginx/nginx.pid && chown nginx:nginx /var/run/nginx.pid
RUN mkdir /var/run/nginx && chown nginx:nginx /var/run/nginx
RUN chown -R nginx:nginx /var/lib/nginx RUN chown -R nginx:nginx /var/lib/nginx
# CLEAR CACHE # CLEAR CACHE