X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docker%2FDockerfile;h=0ffd4bf28ef4d82b5db836008c8f7cc4587c733c;hb=17ba3be0bb5c0bcb7fff2cefa877af975c0d043a;hp=c27857524b1b001b4bad5efcddade2bb0d36f557;hpb=c7f157db9c6c0a2f18739959d0626c2eb09cf8c1;p=e-mobility-charging-stations-simulator.git diff --git a/docker/Dockerfile b/docker/Dockerfile index c2785752..0ffd4bf2 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,8 +1,8 @@ -FROM node:lts-alpine as builder +FROM node:lts-alpine AS builder # Build simulator WORKDIR /usr/builder -COPY .npmrc package.json pnpm-lock.yaml tsconfig.json tsconfig-base.json rollup.config.mjs build-requirements.mjs skip-preinstall.cjs prepare.cjs ./ +COPY package.json pnpm-lock.yaml tsconfig.json bundle.js build-requirements.js skip-preinstall.js prepare.js ./ COPY src ./src COPY docker/config.json ./src/assets/config.json COPY docker/idtags.json ./src/assets/idtags.json @@ -12,7 +12,7 @@ RUN set -ex \ && corepack prepare pnpm@latest --activate \ && pnpm set progress=false \ && pnpm config set depth 0 \ - && pnpm install \ + && pnpm install --ignore-scripts --frozen-lockfile \ && pnpm build \ && apk del .gyp @@ -24,7 +24,7 @@ RUN set -ex \ && corepack prepare pnpm@latest --activate \ && pnpm set progress=false \ && pnpm config set depth 0 \ - && pnpm install \ + && pnpm install --ignore-scripts --frozen-lockfile \ && pnpm build FROM node:lts-alpine @@ -38,7 +38,7 @@ WORKDIR /usr/app COPY --from=builder /usr/builder/webui ./webui COPY --from=builder /usr/builder/node_modules ./node_modules COPY --from=builder /usr/builder/dist ./dist -COPY README.md LICENSE ./ +COPY package.json README.md LICENSE ./ COPY docker/start.sh /start.sh COPY docker/autoconfig.sh /autoconfig.sh RUN set -ex \