use new token name for clarity; use unprivileged image base
Build and Push Docker Image / Docker Build and Push (push) Successful in 8s
Build and Push Docker Image / Docker Build and Push (push) Successful in 8s
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user