Spaces:
Paused
Paused
Update Dockerfile
Browse files123456789101112131415161712342156782391011122513142715FROM ahhhliu/cursor2api:latest
COPY --from=nginx:alpine /etc/nginx /etc/nginxCOPY --from=nginx:alpine /usr/sbin/nginx /usr/sbin/nginx
COPY nginx.conf /etc/nginx/nginx.conf
USER root
RUN apk add --no-cache pcre2
RUN mkdir -p /var/log/nginx && \ mkdir -p /var/cache/nginx && \ mkdir -p /var/run && \ chmod -R 777 /var/log/nginx && \ chmod -R 777 /var/cache/nginx && \ chmod -R 777 /var/runFROM ghcr.io/jiuz-chn/cursor-to-openai:latest
WORKDIR /app
EXPOSE 3001COPY hf.js /app/hf.js
RUN npm install http-proxy-middleware url
RUN chmod 777 -R /appENV HF_PORT=7860# 添加代理环境变量ENV PROXY=""
USER runuserEXPOSE 7860
CMD ["sh", "-c", "nginx && node run.js"]CMD ["sh", "-c", "node hf.js & npm run start"]Dockerfile+9-21