Spaces:
Paused
Paused
File size: 926 Bytes
3480f03 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
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"] |