Skip to content

Commit

Permalink
feat: docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
Licoy committed Sep 3, 2023
1 parent 6bed7df commit f66252f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ RUN apk add --no-cache libc6-compat

WORKDIR /app

COPY package.json yarn.lock ./

RUN yarn config set registry 'https://registry.npmjs.org/'
RUN yarn install
COPY package.json pnpm-lock.yaml ./
RUN npm install pnpm -g
RUN pnpm config set registry 'https://registry.npmjs.org/'
RUN pnpm i

FROM base AS builder

Expand All @@ -21,8 +21,7 @@ ENV CODE=""
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .

RUN yarn build
RUN npm run build

FROM base AS runner
WORKDIR /app
Expand Down

0 comments on commit f66252f

Please sign in to comment.