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
Fix ATG run duration computation
[e-mobility-charging-stations-simulator.git]
/
docker
/
Dockerfile
diff --git
a/docker/Dockerfile
b/docker/Dockerfile
index f881284818f77d46030e277c614a6f5dbd23e30f..531bb43f9153576083fe24ae6ca86008baed57e4 100644
(file)
--- a/
docker/Dockerfile
+++ b/
docker/Dockerfile
@@
-1,4
+1,4
@@
-FROM node:alpine as builder
+FROM node:
lts-
alpine as builder
WORKDIR /usr/builder
WORKDIR /usr/builder
@@
-6,18
+6,18
@@
COPY package.json package-lock.json ./
RUN npm set progress=false && npm config set depth 0 && npm cache clean --force
RUN npm install
RUN npm set progress=false && npm config set depth 0 && npm cache clean --force
RUN npm install
+COPY tsconfig.json rollup.config.js ./
+COPY src ./src
+COPY docker/config.json ./src/assets/config.json
RUN npm run build
RUN npm run build
-FROM node:alpine
+FROM node:
lts-
alpine
WORKDIR /usr/app
COPY --from=builder /usr/builder/node_modules ./node_modules
WORKDIR /usr/app
COPY --from=builder /usr/builder/node_modules ./node_modules
-COPY NOTICE LICENSE ./
-COPY src ./src
-COPY dist ./dist
-COPY *.json ./
-COPY docker/config.json ./src/assets/config.json
+COPY --from=builder /usr/builder/dist ./dist
+COPY README.md NOTICE LICENSE ./
COPY docker/autoconfig.sh /autoconfig.sh
RUN chmod +x /autoconfig.sh
COPY docker/autoconfig.sh /autoconfig.sh
RUN chmod +x /autoconfig.sh