rubberguppe/Dockerfile
2022-11-07 21:35:16 -06:00

24 lines
399 B
Docker

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
HEALTHCHECK CMD /usr/bin/curl --fail http://localhost/ || exit 1
CMD [ "node", "index.js" ]