rubberguppe/Dockerfile

24 lines
334 B
Docker
Raw Normal View History

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
CMD [ "node", "index.js" ]