update .env.produciton, update dev docker build

This commit is contained in:
Alex Holliday committed 2025-05-07 10:21:41 -07:00
1 parent 433b5b89a8
commit 6033d1545e
4 files changed
+58 -9

No files matched your search

+7 -4
View File
@@ -18,10 +18,13 @@ COPY ./client/package*.json ./
RUN npm install
COPY ./client .
COPY ./client ./
RUN npm run build-dev
RUN npm run build
RUN npm install -g serve
FROM nginx:1.27.1-alpine
CMD ["serve","-s", "dist", "-l", "5173"]
COPY --from=build /app/dist /usr/share/nginx/html
COPY --from=build /app/env.sh /docker-entrypoint.d/env.sh
RUN chmod +x /docker-entrypoint.d/env.sh
CMD ["nginx", "-g", "daemon off;"]