add vhost
This commit is contained in:
14
Dockerfile
14
Dockerfile
@ -20,20 +20,22 @@ COPY eslint.config.mjs ./eslint.config.mjs
|
||||
COPY .env.production ./.env.production
|
||||
COPY .prettierrc ./.prettierrc
|
||||
COPY index.html ./index.html
|
||||
COPY vhosts.conf ./vhosts.conf
|
||||
|
||||
RUN npm run build:production
|
||||
|
||||
FROM node:22-alpine
|
||||
# FROM node:22-alpine
|
||||
|
||||
# Copy node modules and build directory from base image to new image
|
||||
COPY --from=base ./node_modules ./node_modules
|
||||
COPY --from=base ./package.json ./package.json
|
||||
COPY --from=base /dist /dist
|
||||
COPY --from=base /src /src
|
||||
COPY --from=base /public /public
|
||||
# COPY --from=base ./node_modules ./node_modules
|
||||
# COPY --from=base ./package.json ./package.json
|
||||
# COPY --from=base /dist /dist
|
||||
# COPY --from=base /src /src
|
||||
# COPY --from=base /public /public
|
||||
|
||||
# Expose required port
|
||||
FROM nginx:alpine
|
||||
COPY --from=base /dist /usr/share/nginx/html
|
||||
COPY --from=base /vhosts.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user