-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (20 loc) · 709 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM node:lts-alpine as builder
LABEL maintainer="[email protected]"
WORKDIR /root/build
COPY package*.json /root/build/
RUN npm ci
COPY ./.babelrc ./.eslint* ./.postcssrc.js ./index.html ./
COPY ./src ./src
COPY ./build ./build
COPY ./config ./config
COPY ./static/config.json.dist ./static/config.json
RUN ls -la /root/build
RUN npm run build
RUN ls -la /root/build/build
FROM netresearch/node-webserver
WORKDIR /app
COPY ./srv ./timetracker-proxy
RUN cd timetracker-proxy && npm install
COPY --from=builder /root/build/dist ./public
RUN echo 'console.log("Registered timetracker proxy")' > customize.js \
&& echo 'module.exports = require("./timetracker-proxy")' >> customize.js