Skip to content

Commit

Permalink
push Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
haishanh committed Apr 12, 2024
1 parent 395c60b commit 1c72267
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: ./app.Dockerfile
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.docker_meta.outputs.tags }},ghcr.io/${{ steps.docker_meta.outputs.tags }}
Expand Down
8 changes: 4 additions & 4 deletions app.Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ RUN pnpm sync && \

FROM init AS base

ENV PUID="1001" PGID="1001" PORT="5173" BODY_SIZE_LIMIT="52428800"

RUN addgroup --system --gid ${PGID} nodejs
RUN adduser --system --uid ${PUID} -G nodejs -h /home/nodejs -s /bin/bash nodejs
# ENV PUID="1001" PGID="1001" PORT="5173" BODY_SIZE_LIMIT="52428800"
#
# RUN addgroup --system --gid ${PGID} nodejs
# RUN adduser --system --uid ${PUID} -G nodejs -h /home/nodejs -s /bin/bash nodejs

WORKDIR /app
ENV NODE_ENV production
Expand Down

0 comments on commit 1c72267

Please sign in to comment.