Skip to content

Commit e814106

Browse files
authored
Update Dockerfile.yaml
Feature: reduce the size of Docker images
1 parent 08379bf commit e814106

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Use node as the builder image
2-
FROM swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/guergeiro/pnpm:18-9
1+
# Use node as the base image
2+
FROM node:alpine
33

44
# Maintainer information
55
MAINTAINER tanwenyang@aliyun.com
@@ -13,6 +13,9 @@ COPY . /app
1313
# Change the working directory to /app
1414
WORKDIR /app
1515

16+
#Install pnpm
17+
RUN npm install -g pnpm --registry=https://registry.npmmirror.com/
18+
1619
# Building the html code
1720
RUN pnpm install --registry=https://registry.npmmirror.com/ && pnpm run build
1821

0 commit comments

Comments
 (0)