Updated rootless dockerfile
Build and Push Alpine NGINX Image to docker.io Registry / Build and push image (root user) (push) Successful in 36s Details
Build and Push Alpine NGINX Image to docker.io Registry / Build and push image (rootless) (push) Successful in 53s Details
Build and Push Alpine NodeJS Image to Winter Access Registry / Build and push image (Root User) (push) Successful in 13s Details
Build and Push Alpine NodeJS Image to Winter Access Registry / Build and push image (rootless) (push) Successful in 14s Details

This commit is contained in:
Aditya Prima 2024-09-12 01:06:02 +07:00
parent 50ad127b53
commit c41cb37409
2 changed files with 4 additions and 1 deletions

View File

@ -21,7 +21,8 @@ ADD ./etc/nginx/conf.d /etc/nginx/conf.d
ADD ./app .
RUN chown -R nginx:nginx /var/lib/nginx
RUN chown -R nginx:nginx /app && \
chown -R nginx:nginx /var/lib/nginx
# CLEAR CACHE
RUN apk del curl && \

View File

@ -1,5 +1,7 @@
# /etc/nginx/nginx.conf
user nginx nginx;
# Do not start as daemon
daemon off;