Skip to content

Commit

Permalink
Merge pull request #71 from codex-team/fix/dockerfile
Browse files Browse the repository at this point in the history
chore: copy .yarn/releases to docker
  • Loading branch information
neSpecc authored Oct 20, 2023
2 parents 8f0ecad + 01f258f commit aeee7e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.16.0
v20
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
FROM node:18-alpine AS deps
FROM node:20-alpine AS deps

RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json yarn.lock .yarnrc.yml ./
COPY .yarn/releases ./.yarn/releases
RUN yarn install

FROM node:18-alpine AS builder
FROM node:20-alpine AS builder
WORKDIR /app
COPY . .
COPY --from=deps /app/node_modules ./node_modules
RUN yarn build

FROM node:18-alpine AS runner
FROM node:20-alpine AS runner
WORKDIR /usr/app

COPY --from=builder /app/dist ./dist
COPY package.json yarn.lock .yarnrc.yml ./
COPY package.json yarn.lock .yarnrc.yml ./
COPY .yarn/releases ./.yarn/releases
RUN yarn install
COPY ./app-config.yaml .
COPY ./migrations ./migrations
Expand Down

0 comments on commit aeee7e4

Please sign in to comment.