Download Dockerfile from welop/Cursor: direct link, hf CLI and curl.
- Browser
- Download file 926 Bytes
-
https://huggingface.co/spaces/welop/Cursor/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/welop/Cursor/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/welop/Cursor/resolve/main/Dockerfile
926 Bytes
| FROM node:20-alpine | |
| RUN apk add --no-cache git | |
| # ์์ ๋๋ ํ ๋ฆฌ ์์ฑ | |
| WORKDIR /app | |
| RUN git clone --depth 1 https://github.com/tincansimagine/cursor-to-openai-nexus.git . | |
| RUN mkdir -p logs data | |
| # ์คํ ๊ถํ ๋ถ์ฌ | |
| RUN chmod +x src/proxy/cursor_proxy_server_linux_amd64 | |
| RUN cp .env.example .env | |
| # ์์กด์ฑ ์ค์น (ํ๋ก๋์ ์ฉ์ผ๋ก devDependencies ์ ์ธ) | |
| RUN npm install --omit=dev | |
| # ์ ํ๋ฆฌ์ผ์ด์ ํ์ผ ๋ฐ ๋๋ ํ ๋ฆฌ ์์ ๊ถ์ node ์ฌ์ฉ์๋ก ๋ณ๊ฒฝ | |
| # npm install ํ ์์ฑ๋ node_modules ๋ฑ๋ ํฌํจํ๊ธฐ ์ํด ์ฌ๊ธฐ์ chown ์คํ | |
| RUN chown -R node:node /app | |
| # Node.js ์ผ๋ฐ ์ฌ์ฉ์๋ก ์คํ (๋ณด์ ๊ฐํ) | |
| USER node | |
| # ๋คํธ์ํฌ ํฌํธ ์ค์ | |
| EXPOSE 3010 | |
| # ๊ธฐ๋ณธ ํ๊ฒฝ๋ณ์ ์ค์ (Hugging Face Secrets ๋๋ docker run -e ๋ก ์ค๋ฒ๋ผ์ด๋ ๊ฐ๋ฅ) | |
| ENV HOST=0.0.0.0 | |
| ENV PORT=3010 | |
| ENV LOG_LEVEL=INFO | |
| ENV ENABLE_AUTO_REFRESH=false | |
| # ์ฑ ์คํ | |
| CMD ["npm", "start"] |