ltx/Dockerfile
2023-05-16 16:53:30 -04:00

19 lines
397 B
Docker

FROM node:16 AS appbuild
WORKDIR /usr/src/app/lifetracker-vue
COPY lifetracker-vue ./
RUN npm install
RUN npm run build-only
RUN "echo $(ls)"
# Build Stage 2
# This build takes the production build from staging build
#
FROM node:16
WORKDIR /usr/src/app
COPY lifetracker-server/package*.json ./
RUN npm install
COPY --from=appbuild /usr/src/app/dist ./src/dist
EXPOSE 8081
CMD [ "npm", "start" ]