mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-24 23:38:55 +00:00
0370871867
Signed-off-by: khs1994 <khs1994@khs1994.com>
17 lines
246 B
Go
17 lines
246 B
Go
FROM node:alpine as builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json /app/
|
|
|
|
RUN npm i --registry=https://registry.npm.taobao.org \
|
|
&& rm -rf ~/.npm
|
|
|
|
COPY src /app/src
|
|
|
|
RUN npm run build
|
|
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=builder /app/dist /app/dist
|