This commit is contained in:
Ryan Pandya 2023-05-16 16:50:27 -04:00
parent 1c20703445
commit b1999cadb4
2 changed files with 3 additions and 3 deletions

View File

@ -2,9 +2,9 @@ FROM node:16 AS appbuild
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY lifetracker-vue/package*.json ./ COPY lifetracker-vue/package*.json ./
RUN npm install RUN npm install
COPY ./src ./src COPY ./dist ./dist
RUN npm run build-only RUN npm run build-only
COPY ./src/dist ./src/dist COPY ./dist ./dist
# Build Stage 2 # Build Stage 2
# This build takes the production build from staging build # This build takes the production build from staging build

View File

@ -13,7 +13,7 @@ export default defineConfig({
}, },
root: "src", root: "src",
build: { build: {
outDir: "../../lifetracker-server/src/dist", outDir: "/dist",
emptyOutDir: true, emptyOutDir: true,
}, },
server: { server: {