feat: unify task creation with shared modal

This commit is contained in:
zhi
2026-03-16 16:32:09 +00:00
parent 0c5c78a45d
commit ef42231697
7 changed files with 300 additions and 42 deletions

View File

@@ -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"]