use new token name for clarity; use unprivileged image base
Build and Push Docker Image / Docker Build and Push (push) Successful in 8s

This commit is contained in:
2025-07-29 19:25:24 -05:00
parent 3597cda806
commit baa4d9ea03
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ jobs:
with:
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ env.REGISTRY_USERNAME }}
password: ${{ secrets.REPO_PKG_TOKEN }}
password: ${{ secrets.CD_CD_BUILD_PUSH }}
- name: 🐋 Build Docker image
run: docker build -t $IMAGE_REGISTRY/$IMAGE_NAME:$IMAGE_TAG ./container
+8 -2
View File
@@ -1,7 +1,13 @@
FROM nginx:alpine
FROM nginxinc/nginx-unprivileged:alpine
USER root
RUN rm -rf /usr/share/nginx/html/*
COPY site/ /usr/share/nginx/html/
EXPOSE 80
RUN chown -R 101:101 /usr/share/nginx/html
USER 101
EXPOSE 8080