Update build directory and configuration
This commit is contained in:
parent
a4069d8eff
commit
d6e825a3dc
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,6 +11,7 @@ lerna-debug.log*
|
|||||||
node_modules
|
node_modules
|
||||||
.DS_Store
|
.DS_Store
|
||||||
dist
|
dist
|
||||||
|
build
|
||||||
dist-ssr
|
dist-ssr
|
||||||
coverage
|
coverage
|
||||||
*.local
|
*.local
|
||||||
|
@ -6,7 +6,7 @@ COPY . .
|
|||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM nginx:stable-alpine as production-stage
|
FROM nginx:stable-alpine as production-stage
|
||||||
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
COPY --from=build-stage /app/build /usr/share/nginx/html
|
||||||
COPY --from=build-stage /app/nginx.conf /etc/nginx/nginx.conf
|
COPY --from=build-stage /app/nginx.conf /etc/nginx/nginx.conf
|
||||||
EXPOSE 32166
|
EXPOSE 32166
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
@ -16,9 +16,3 @@ CMD ["nginx", "-g", "daemon off;"]
|
|||||||
# COPY /nginx.conf /etc/nginx/nginx.conf
|
# COPY /nginx.conf /etc/nginx/nginx.conf
|
||||||
# EXPOSE 32166
|
# EXPOSE 32166
|
||||||
# CMD ["nginx", "-g", "daemon off;"]
|
# CMD ["nginx", "-g", "daemon off;"]
|
||||||
|
|
||||||
# FROM nginx:stable-alpine
|
|
||||||
# COPY /dist /usr/share/nginx/html
|
|
||||||
# COPY /nginx.conf /etc/nginx/nginx.conf
|
|
||||||
# EXPOSE 32166
|
|
||||||
# CMD ["nginx", "-g", "daemon off;"]
|
|
@ -21,4 +21,11 @@ export default defineConfig({
|
|||||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
build: {
|
||||||
|
outDir: 'build',
|
||||||
|
emptyOutDir: true,
|
||||||
|
chunkSizeWarningLimit: 4096,
|
||||||
|
cssCodeSplit: true,
|
||||||
|
cssMinify: true,
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user