2021-11-01 23:05:14 +00:00
|
|
|
FROM node:16
|
|
|
|
|
|
|
|
# Web clinet installs
|
|
|
|
WORKDIR /usr/src/guppe/web
|
|
|
|
COPY ./web/package*.json ./
|
|
|
|
RUN npm ci
|
|
|
|
|
|
|
|
# server installs
|
|
|
|
WORKDIR /usr/src/guppe
|
|
|
|
COPY package*.json ./
|
|
|
|
RUN npm ci
|
|
|
|
|
|
|
|
# source
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
# web client build
|
|
|
|
WORKDIR /usr/src/guppe/web
|
|
|
|
RUN npm run build
|
|
|
|
|
|
|
|
# entry
|
|
|
|
WORKDIR /usr/src/guppe
|
|
|
|
EXPOSE 443 80
|
2022-11-08 03:35:16 +00:00
|
|
|
HEALTHCHECK CMD /usr/bin/curl --fail http://localhost/ || exit 1
|
2021-11-01 23:05:14 +00:00
|
|
|
CMD [ "node", "index.js" ]
|