Create Dockerfile
Browse files123456789101112131415161718192021222324252627282930313233343536FROM node:20-alpine
RUN apk add --no-cache git
# ์์
๋๋ ํ ๋ฆฌ ์์ฑWORKDIR /app
RUN git clone --depth 1 https://github.com/liuw1535/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.0ENV PORT=3010ENV LOG_LEVEL=INFO
# ์ฑ ์คํCMD ["npm", "start"]DockerfileAdded+36