Skip to content

Commit

Permalink
fix: lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes-Andersen committed Nov 16, 2024
1 parent 21d438c commit 152ed6d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ENV DISCORD_SNOWFLAKE=${DISCORD_SNOWFLAKE}
COPY package.json package-lock.json ./

FROM base AS prod-deps
RUN npm install --production
RUN npm ci --omit=dev

FROM base AS build-deps
RUN npm install --production=false
Expand All @@ -16,11 +16,12 @@ FROM build-deps AS build
COPY . .
RUN npm run build

FROM base AS runtime
FROM gcr.io/distroless/nodejs22-debian12 AS runtime
COPY --from=prod-deps /app/node_modules ./node_modules
COPY --from=build /app/dist ./dist

ENV TZ=Europe/Oslo
ENV HOST=0.0.0.0
ENV PORT=4321
EXPOSE 4321
CMD node ./dist/server/entry.mjs
CMD ["./dist/server/entry.mjs"]
27 changes: 22 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 152ed6d

Please sign in to comment.