Skip to content

Commit c9f7fc3

Browse files
committed
Update dockerfile
1 parent f07ed5f commit c9f7fc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN npm prune --production
2020

2121
FROM node:16.18.0-alpine3.16
2222

23-
RUN apk add --no-cache chromium
23+
RUN apk add --no-cache chromium npm
2424

2525
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser \
2626
DOCKER=true
@@ -39,5 +39,5 @@ COPY --from=builder /build/build/ build/
3939
COPY web/ web/
4040
COPY package.json package.json
4141

42-
ENTRYPOINT ["npm", "run"]
42+
ENTRYPOINT [ "sh", "-c", "which npm && npm run" ]
4343
CMD ["start:production"]

0 commit comments

Comments
 (0)