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
Put auto-changelog configuration in package.json
[e-mobility-charging-stations-simulator.git]
/
docker
/
Dockerfile
diff --git
a/docker/Dockerfile
b/docker/Dockerfile
index b568d8b5b0d8260a5a0ceeb8cb45e1673e15ba21..8884e89ebaba05e519ab5f532f3588c6b60a99e2 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,19
@@
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 src/assets/authorization-tags-template.json ./src/assets/authorization-tags.json
+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 --from=builder /usr/builder/dist ./dist
COPY NOTICE LICENSE ./
COPY NOTICE LICENSE ./
-# COPY src ./src
-COPY dist ./dist
-COPY *.json ./
-COPY docker/config.json ./dist/assets/config.json
COPY docker/autoconfig.sh /autoconfig.sh
RUN chmod +x /autoconfig.sh
COPY docker/autoconfig.sh /autoconfig.sh
RUN chmod +x /autoconfig.sh