Skip to content

Commit

Permalink
fix: Docker runner stage
Browse files Browse the repository at this point in the history
  • Loading branch information
riipandi committed Sep 16, 2024
1 parent 7b798c1 commit 5fbdfc0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ COPY --chown=nonroot:nonroot --from=pruner /srv /srv
COPY --from=builder /usr/bin/tini /usr/bin/tini

# Define the host and port to listen on.
ARG NODE_ENV=production PORT=3000
ARG NODE_ENV=production HOST=0.0.0.0 PORT=3000
ENV PNPM_HOME="/pnpm" PATH="$PNPM_HOME:$PATH"
ENV NODE_ENV=$NODE_ENV HOST=0.0.0.0 PORT=$PORT
ENV NODE_ENV=$NODE_ENV HOST=$HOST PORT=$PORT
ENV TINI_SUBREAPER=true

WORKDIR /srv
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ COPY --chown=nonroot:nonroot --from=pruner /srv /srv
COPY --from=builder /sbin/tini /sbin/tini

# Define the host and port to listen on.
ARG NODE_ENV=production PORT=3000
ENV NODE_ENV=$NODE_ENV HOST=0.0.0.0 PORT=$PORT
ARG NODE_ENV=production HOST=0.0.0.0 PORT=3000
ENV PNPM_HOME="/pnpm" PATH="$PNPM_HOME:$PATH"
ENV NODE_ENV=$NODE_ENV HOST=$HOST PORT=$PORT
ENV TINI_SUBREAPER=true

USER nonroot:nonroot
Expand Down

0 comments on commit 5fbdfc0

Please sign in to comment.