repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: remove unneeded intermediate variable in id tags cache code
[e-mobility-charging-stations-simulator.git]
/
docker
/
Dockerfile
diff --git
a/docker/Dockerfile
b/docker/Dockerfile
index 080c56d025f41495e373f2555c08458ae7244cd3..588856889f3d992f7986d71219fdaaee8bdefe19 100644
(file)
--- a/
docker/Dockerfile
+++ b/
docker/Dockerfile
@@
-2,28
+2,28
@@
FROM node:lts-alpine as builder
# Build simulator
WORKDIR /usr/builder
# Build simulator
WORKDIR /usr/builder
-COPY .npmrc package.json p
ackage-lock.json tsconfig.json rollup.config.mjs prepare.js build-requirements.
js ./
+COPY .npmrc package.json p
npm-lock.yaml tsconfig.json rollup.config.mjs build-requirements.mjs skip-preinstall.cjs prepare.c
js ./
COPY src ./src
COPY docker/config.json ./src/assets/config.json
COPY src ./src
COPY docker/config.json ./src/assets/config.json
-COPY docker/
authorization-tags.json ./src/assets/authorization-
tags.json
+COPY docker/
idtags.json ./src/assets/id
tags.json
RUN set -ex \
&& apk add --no-cache --virtual .gyp build-base python3 \
RUN set -ex \
&& apk add --no-cache --virtual .gyp build-base python3 \
- &&
npm set progress=fals
e \
- &&
npm config set depth 0
\
- &&
npm cache clean --force
\
- &&
npm clean-
install \
- && npm run build \
+ &&
corepack enabl
e \
+ &&
pnpm set progress=false
\
+ &&
pnpm config set depth 0
\
+ &&
pnpm
install \
+ &&
p
npm run build \
&& apk del .gyp
# Build simulator dashboard
WORKDIR /usr/builder/webui
COPY ui/web ./
RUN set -ex \
&& apk del .gyp
# Build simulator dashboard
WORKDIR /usr/builder/webui
COPY ui/web ./
RUN set -ex \
- &&
npm set progress=fals
e \
- &&
npm config set depth 0
\
- &&
npm cache clean --force
\
- &&
npm clean-
install \
- && npm run build
+ &&
corepack enabl
e \
+ &&
pnpm set progress=false
\
+ &&
pnpm config set depth 0
\
+ &&
pnpm
install \
+ &&
p
npm run build
FROM node:lts-alpine
FROM node:lts-alpine