pms/web/Dockerfile

21 lines
555 B
Docker
Raw Normal View History

2024-08-18 10:00:49 +08:00
FROM node:18
WORKDIR /gva_web/
2021-06-10 22:05:14 +08:00
COPY . .
2024-08-18 09:24:47 +08:00
2024-08-18 09:12:02 +08:00
#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
#RUN apk add npm
2024-08-18 09:24:47 +08:00
RUN npm config set registry https://mirrors.huaweicloud.com/repository/npm/
2024-08-18 09:19:40 +08:00
#RUN npm i cnpm -g
2024-08-18 09:24:47 +08:00
RUN npm install
RUN npm run build
2024-08-18 09:19:40 +08:00
FROM nginx:alpine
LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com"
COPY .docker-compose/nginx/conf.d/my.conf /etc/nginx/conf.d/my.conf
COPY --from=0 /gva_web/dist /usr/share/nginx/html
RUN cat /etc/nginx/nginx.conf
RUN cat /etc/nginx/conf.d/my.conf
2024-08-18 09:19:40 +08:00
RUN ls -al /usr/share/nginx/html