fix build

This commit is contained in:
Alex Holliday committed 2025-09-01 09:14:35 -07:00
1 parent fcd6741cf9
commit d8c8e222c8
1 file changed
+7 -6
+7 -6
View File
@@ -3,23 +3,24 @@ FROM node:20-slim AS frontend-build
WORKDIR /app/client
COPY client/package*.json ./
RUN npm ci
RUN npm ci --omit=optional
COPY client ./
RUN npm run build
FROM node:20-slim AS backend
WORKDIR /app/server
COPY server ./
COPY --from=frontend-build /app/client/dist ./public
COPY server/package*.json ./
RUN npm ci --omit=optional
COPY server ./
COPY --from=frontend-build /app/client/dist ./public
RUN chmod +x ./scripts/inject-vars.sh
EXPOSE 52345
CMD ./scripts/inject-vars.sh && node ./src/index.js
CMD ["sh", "-c", "./scripts/inject-vars.sh && node ./src/index.js"]