Skip to content

Commit

Permalink
Docker stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis committed Oct 27, 2023
1 parent 91a81a6 commit 536061e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
FROM node:18-alpine
FROM node:20-alpine

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

USER node
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app

WORKDIR /home/node/app

COPY package*.json ./
COPY pnpm-lock.yaml ./
USER node
RUN corepack enable
RUN pnpm install --frozen-lockfile --production && pnpm cache clean
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile --production && pnpm store prune
COPY --chown=node:node run.sh .
COPY --chown=node:node dist .
COPY --chown=node:node api/dim-gg/views api/dim-gg/views
Expand Down

0 comments on commit 536061e

Please sign in to comment.