2023-08-04 14:18:23 +08:00
|
|
|
FROM node:16
|
2023-08-04 11:03:14 +08:00
|
|
|
COPY ./ /app
|
|
|
|
WORKDIR /app
|
|
|
|
RUN npm config set registry http://registry.npm.taobao.org
|
|
|
|
RUN npm install && npm run build
|
|
|
|
|
|
|
|
FROM nginx
|
|
|
|
RUN mkdir /app
|
|
|
|
COPY --from=0 /app/dist /app
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|