feat: unify task creation with shared modal
This commit is contained in:
@@ -6,10 +6,11 @@ RUN npm install
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# Production stage — lightweight static server, no nginx
|
||||
# Runtime stage
|
||||
FROM node:20-alpine
|
||||
RUN npm install -g serve@14
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/dist ./dist
|
||||
COPY --from=build /app ./
|
||||
ENV FRONTEND_DEV_MODE=0
|
||||
EXPOSE 3000
|
||||
CMD ["serve", "-s", "dist", "-l", "3000"]
|
||||
CMD ["sh", "-c", "if [ \"$FRONTEND_DEV_MODE\" = \"1\" ]; then npm run dev -- --host 0.0.0.0 --port 3000 --strictPort; else serve -s dist -l 3000; fi"]
|
||||
|
||||
Reference in New Issue
Block a user