Skip to content

Commit

Permalink
Make ARGs complient with Docker specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Forceu authored Jun 15, 2024
1 parent ea5d565 commit 81ed817
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM node:20-bookworm-slim as base

ARG UID=1001
ARG GID=1001

FROM node:20-bookworm-slim as base

# build stage
FROM base AS deps

Expand All @@ -27,6 +27,9 @@ RUN npm run build
# run stage
FROM base AS runner

ARG UID
ARG GID

ENV NODE_ENV production

RUN echo 'deb http://deb.debian.org/debian bookworm-backports main' >> /etc/apt/sources.list
Expand All @@ -53,4 +56,4 @@ USER borgwarehouse

EXPOSE 3000 22

ENTRYPOINT ["./docker-bw-init.sh"]
ENTRYPOINT ["./docker-bw-init.sh"]

0 comments on commit 81ed817

Please sign in to comment.