Files
trace/Dockerfile
Fredrik Johansson 89459f1dad
All checks were successful
Docker / test-build-push (push) Successful in 58s
Add main-only container workflow
2026-07-20 21:06:14 +02:00

10 lines
361 B
Docker

FROM node:24-alpine
RUN apk add --no-cache git
WORKDIR /app
COPY package.json ./
COPY src ./src
RUN mkdir -p data/exports
EXPOSE 3082
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 CMD ["node", "-e", "fetch('http://127.0.0.1:3082/api/health').then(r=>{if(!r.ok)process.exit(1)}).catch(()=>process.exit(1))"]
CMD ["node","src/server.mjs"]