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

Commit 4ff83c2

Browse files
authored
Merge pull request #760 from trowik/dockerfile-pnpm
chore: use pnpm in Dockerfile
2 parents 374efe4 + c67d56d commit 4ff83c2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
FROM danlynn/ember-cli:latest as build
1+
FROM danlynn/ember-cli:3.28.0 as build
22

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

5-
RUN yarn install
5+
COPY package.json pnpm-lock.yaml /myapp/
6+
7+
RUN pnpm fetch
68

79
COPY . /myapp/
810

9-
RUN yarn build --environment=production
11+
RUN pnpm install --frozen-lockfile --offline
12+
13+
RUN pnpm run build --environment=production
1014

1115
FROM nginx:alpine
1216

0 commit comments

Comments
 (0)