3
This commit is contained in:
parent
8ea972f5d9
commit
c9bbd65a68
12
Dockerfile
12
Dockerfile
@ -4,13 +4,7 @@ FROM node:16
|
|||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Export static site into lifetracker-server
|
# Export static site into lifetracker-server
|
||||||
COPY lifetracker-vue/ ./
|
COPY lifetracker-vue/ /usr/src/app/
|
||||||
|
|
||||||
WORKDIR /usr/src/app/lifetracker-vue
|
|
||||||
RUN npm install
|
|
||||||
RUN npm run build-only
|
|
||||||
|
|
||||||
RUN ls -al
|
|
||||||
|
|
||||||
WORKDIR /usr/src/app/lifetracker-server
|
WORKDIR /usr/src/app/lifetracker-server
|
||||||
# Install app dependencies
|
# Install app dependencies
|
||||||
@ -21,6 +15,10 @@ RUN npm install
|
|||||||
# If you are building your code for production
|
# If you are building your code for production
|
||||||
# RUN npm ci --omit=dev
|
# 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
|
WORKDIR /usr/src/app/lifetracker-server
|
||||||
|
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user