Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

chore: use pnpm in Dockerfile #760

Merged
merged 1 commit into from
Dec 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
FROM danlynn/ember-cli:latest as build
FROM danlynn/ember-cli:3.28.0 as build

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

RUN yarn install
COPY package.json pnpm-lock.yaml /myapp/

RUN pnpm fetch

COPY . /myapp/

RUN yarn build --environment=production
RUN pnpm install --frozen-lockfile --offline

RUN pnpm run build --environment=production

FROM nginx:alpine

Expand Down