deploy setup

This commit is contained in:
2026-02-27 21:34:13 -06:00
parent 9d7a443b7c
commit 24b9f21541
4 changed files with 53 additions and 1 deletions

20
client/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# build vue app
FROM node:current-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# serve to nginx
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
RUN rm /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]