add vhost

This commit is contained in:
2025-05-24 23:30:24 +09:00
parent fd3ad83aae
commit bc6c9470d5
2 changed files with 37 additions and 6 deletions

View File

@ -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;"]