This commit is contained in:
Ryan Pandya 2023-05-16 16:37:56 -04:00
parent 8ea972f5d9
commit c9bbd65a68

View File

@ -4,13 +4,7 @@ FROM node:16
WORKDIR /usr/src/app
# Export static site into lifetracker-server
COPY lifetracker-vue/ ./
WORKDIR /usr/src/app/lifetracker-vue
RUN npm install
RUN npm run build-only
RUN ls -al
COPY lifetracker-vue/ /usr/src/app/
WORKDIR /usr/src/app/lifetracker-server
# Install app dependencies
@ -21,6 +15,10 @@ RUN npm install
# If you are building your code for production
# RUN npm ci --omit=dev
WORKDIR /usr/src/app/lifetracker-vue
RUN npm install
RUN npm run build-only
WORKDIR /usr/src/app/lifetracker-server
EXPOSE 8081