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
README.md: fix sections hierarchy
[e-mobility-charging-stations-simulator.git]
/
docker
/
Dockerfile
diff --git
a/docker/Dockerfile
b/docker/Dockerfile
index d681e2950399916ea01b8f273c7757688bd9b2af..46ca0102c1e0ad1e7b7d86c4c56b3ef38075565d 100644
(file)
--- a/
docker/Dockerfile
+++ b/
docker/Dockerfile
@@
-6,18
+6,20
@@
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
FROM node:lts-alpine
WORKDIR /usr/app
COPY --from=builder /usr/builder/node_modules ./node_modules
FROM node:lts-alpine
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 *.json ./
-COPY docker/config.json ./src/config.json
COPY docker/autoconfig.sh /autoconfig.sh
RUN chmod +x /autoconfig.sh
COPY docker/autoconfig.sh /autoconfig.sh
RUN chmod +x /autoconfig.sh
-#CMD ["node", "
src/index
.js"]
-CMD /autoconfig.sh && node
src/index
.js
+#CMD ["node", "
dist/start
.js"]
+CMD /autoconfig.sh && node
-r source-map-support/register dist/start
.js