Migrate from serve to nginx

This commit is contained in:
Alex Holliday committed 2024-08-18 19:17:50 -07:00
1 parent 7690c04b7f
commit 3f19c71330
2 files changed
+9 -5

No files matched your search

+8 -4
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;"]
+1 -1
View File
@@ -3,7 +3,7 @@ services:
client:
image: uptime_client:latest
ports:
- "80:5173"
- "80:80"
depends_on:
- server
server: