2 Commits ebfd947fe1 ... 6131aec06d

Autore SHA1 Messaggio Data
  Yi 6131aec06d feat(components): cicd5 5 mesi fa
  Yi ebfd947fe1 feat(components): cicd5 5 mesi fa
1 ha cambiato i file con 3 aggiunte e 4 eliminazioni
  1. 3 4
      Dockerfile

+ 3 - 4
Dockerfile

@@ -2,7 +2,7 @@ FROM node:18.12-alpine as build
 WORKDIR /app/kpt-system-web
 WORKDIR /app/kpt-system-web
 ENV NODE_OPTIONS="--max-old-space-size=4096"
 ENV NODE_OPTIONS="--max-old-space-size=4096"
 COPY . .
 COPY . .
-RUN ls -l && pwd && mkdir -p /root/.local/share/pnpm/store/v3/files && chown -R $(whoami) /root/.local/share/pnpm/store/v3/
+RUN mkdir -p /root/.local/share/pnpm/store/v3/files && chown -R $(whoami) /root/.local/share/pnpm/store/v3/
 RUN npm install -g pnpm && npm install -g typescript@5.1.6
 RUN npm install -g pnpm && npm install -g typescript@5.1.6
 RUN echo "declare module 'lodash-es';" > types.d.ts
 RUN echo "declare module 'lodash-es';" > types.d.ts
 RUN pnpm config set registry https://registry.npmmirror.com
 RUN pnpm config set registry https://registry.npmmirror.com
@@ -12,7 +12,6 @@ RUN pnpm build
 
 
 FROM nginx:alpine as prod
 FROM nginx:alpine as prod
 WORKDIR /app/kpt-system-web
 WORKDIR /app/kpt-system-web
-RUN ls -l && pwd
-COPY --from=build ./dist/ /usr/share/nginx/html/
-COPY --from=build ./nginx.conf /etc/nginx/conf.d/default.conf
+COPY --from=build /app/kpt-system-web/dist/ /usr/share/nginx/html/
+COPY --from=build /app/kpt-system-web/nginx.conf /etc/nginx/conf.d/default.conf
 EXPOSE 80
 EXPOSE 80