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
|
||||
.DS_Store
|
||||
dist
|
||||
build
|
||||
dist-ssr
|
||||
coverage
|
||||
*.local
|
||||
|
@ -6,17 +6,11 @@ COPY . .
|
||||
RUN npm run build
|
||||
|
||||
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
|
||||
EXPOSE 32166
|
||||
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;"]
|
||||
|
||||
# FROM nginx:stable-alpine
|
||||
# COPY /dist /usr/share/nginx/html
|
||||
# COPY /nginx.conf /etc/nginx/nginx.conf
|
||||
|
@ -21,4 +21,11 @@ export default defineConfig({
|
||||
'@': 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