ggs11118 commited on
Commit
e1dcad5
Β·
verified Β·
1 Parent(s): 5bcf2e0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +37 -0
Dockerfile ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:20-alpine
2
+
3
+ RUN apk add --no-cache git
4
+
5
+ # μž‘μ—… 디렉토리 생성
6
+ WORKDIR /app
7
+
8
+ RUN git clone --depth 1 https://github.com/tincansimagine/cursor-to-openai-nexus.git .
9
+
10
+ RUN mkdir -p logs data
11
+
12
+ # μ‹€ν–‰ κΆŒν•œ λΆ€μ—¬
13
+ RUN chmod +x src/proxy/cursor_proxy_server_linux_amd64
14
+
15
+ RUN cp .env.example .env
16
+
17
+ # μ˜μ‘΄μ„± μ„€μΉ˜ (ν”„λ‘œλ•μ…˜μš©μœΌλ‘œ devDependencies μ œμ™Έ)
18
+ RUN npm install --omit=dev
19
+
20
+ # μ• ν”Œλ¦¬μΌ€μ΄μ…˜ 파일 및 디렉토리 μ†Œμœ κΆŒμ„ node μ‚¬μš©μžλ‘œ λ³€κ²½
21
+ # npm install ν›„ μƒμ„±λœ node_modules 등도 ν¬ν•¨ν•˜κΈ° μœ„ν•΄ μ—¬κΈ°μ„œ chown μ‹€ν–‰
22
+ RUN chown -R node:node /app
23
+
24
+ # Node.js 일반 μ‚¬μš©μžλ‘œ μ‹€ν–‰ (λ³΄μ•ˆ κ°•ν™”)
25
+ USER node
26
+
27
+ # λ„€νŠΈμ›Œν¬ 포트 μ„€μ •
28
+ EXPOSE 3010
29
+
30
+ # κΈ°λ³Έ ν™˜κ²½λ³€μˆ˜ μ„€μ • (Hugging Face Secrets λ˜λŠ” docker run -e 둜 μ˜€λ²„λΌμ΄λ“œ κ°€λŠ₯)
31
+ ENV HOST=0.0.0.0
32
+ ENV PORT=3010
33
+ ENV LOG_LEVEL=INFO
34
+ ENV ENABLE_AUTO_REFRESH=false
35
+
36
+ # μ•± μ‹€ν–‰
37
+ CMD ["npm", "start"]