Skip to content

Commit

Permalink
chore: switch dockerfile to pnpm without lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Oct 27, 2023
1 parent 899c12a commit e66a06f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions core/api/Dockerfile-debug
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ WORKDIR /app

RUN apk update && apk add git

COPY ./*.json ./yarn.lock ./
RUN npm install -g pnpm

RUN yarn install --frozen-lockfile
COPY ./*.json ./

RUN pnpm install

COPY ./src ./src
COPY ./test ./test

RUN yarn build
RUN pnpm run build

RUN touch .env

Expand All @@ -22,7 +24,7 @@ COPY --from=BUILD_IMAGE /app/src/config/locales /app/dist/config/locales
COPY --from=BUILD_IMAGE /app/node_modules /app/node_modules

WORKDIR /app
COPY ./*.js ./package.json ./tsconfig.json ./yarn.lock ./
COPY ./*.js ./package.json ./tsconfig.json ./

### debug only
COPY --from=BUILD_IMAGE /app/src /app/src
Expand Down
10 changes: 6 additions & 4 deletions core/api/Dockerfile-migrate
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ WORKDIR /app

RUN apk update && apk add git

COPY ./*.json ./yarn.lock ./
RUN npm install -g pnpm

RUN yarn install --frozen-lockfile
COPY ./*.json ./

RUN pnpm install

COPY ./src ./src
COPY ./test ./test

RUN yarn build
RUN pnpm run build

COPY ./scripts ./scripts

Expand All @@ -22,7 +24,7 @@ COPY --from=BUILD_IMAGE /app/node_modules /app/node_modules
COPY --from=BUILD_IMAGE /app/scripts /app/scripts

WORKDIR /app
COPY ./*.js ./package.json ./tsconfig.json ./yarn.lock ./
COPY ./*.js ./package.json ./tsconfig.json ./
RUN touch .env

### debug only
Expand Down

0 comments on commit e66a06f

Please sign in to comment.