Merge pull request #669 from bluewave-labs/feat/nginx

Migrate from serve to nginx, resolves #640
This commit is contained in:
Alexander Holliday
2024-08-19 09:38:58 -07:00
committed by GitHub
2 changed files with 9 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
FROM node:20-alpine
FROM node:20-alpine as build
WORKDIR /app
@@ -10,8 +10,12 @@ COPY ./Client .
RUN npm run build
RUN npm install -g serve
# RUN npm install -g serve
CMD ["serve","-s", "dist", "-l", "5173"]
# CMD ["serve","-s", "dist", "-l", "5173"]
EXPOSE 5000
FROM nginx:1.27.1-alpine
COPY --from=build /app/dist /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]

View File

@@ -3,7 +3,7 @@ services:
client:
image: uptime_client:latest
ports:
- "80:5173"
- "80:80"
depends_on:
- server
server: