ca / Dockerfile
kklljj's picture
Update Dockerfile
f4405c0 verified
raw
history blame contribute delete
460 Bytes
FROM node:20-slim
WORKDIR /app
RUN apt-get update && apt-get install -y git curl && rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/7836246/cursor2api.git .
RUN npm install
RUN npm run build
ENV PORT=3010 \
NODE_ENV=production \
CORS_ORIGIN=*
EXPOSE 3010
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD curl -f http://localhost:3010/health || exit 1
CMD ["npm", "run", "dev", "--", "--port", "3010"]