This commit is contained in:
Ryan Pandya 2023-05-16 17:03:19 -04:00
parent cd36376bbc
commit e89e3a67be

View File

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