hugging2021 commited on
Commit
af4d501
ยท
verified ยท
1 Parent(s): 273b615

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -1,15 +1,15 @@
1
- #FROM python:3.10
2
 
3
- #WORKDIR /app
4
- #COPY . /app
5
 
6
  # /tmp ๋””๋ ‰ํ† ๋ฆฌ ์ƒ์„ฑ ๋ฐ ๊ถŒํ•œ ๋ถ€์—ฌ
7
- #RUN mkdir -p /tmp && chmod 1777 /tmp
8
- #RUN chmod -Rc 775 /app
9
 
10
  # TMPDIR ํ™˜๊ฒฝ๋ณ€์ˆ˜๋ฅผ ์ง€์ •ํ•˜์—ฌ pip install ์‹คํ–‰
11
  #RUN TMPDIR=/tmp pip install --upgrade pip && TMPDIR=/tmp pip install -r requirements.txt -U
12
 
13
- #EXPOSE 8500
14
 
15
  CMD ["uvicorn", "rag_server:app", "--host", "0.0.0.0", "--port", "8500"]
 
1
+ FROM python:3.10
2
 
3
+ WORKDIR /app
4
+ COPY . /app
5
 
6
  # /tmp ๋””๋ ‰ํ† ๋ฆฌ ์ƒ์„ฑ ๋ฐ ๊ถŒํ•œ ๋ถ€์—ฌ
7
+ RUN mkdir -p /tmp && chmod 1777 /tmp
8
+ RUN chmod -Rc 775 /app
9
 
10
  # TMPDIR ํ™˜๊ฒฝ๋ณ€์ˆ˜๋ฅผ ์ง€์ •ํ•˜์—ฌ pip install ์‹คํ–‰
11
  #RUN TMPDIR=/tmp pip install --upgrade pip && TMPDIR=/tmp pip install -r requirements.txt -U
12
 
13
+ EXPOSE 8500
14
 
15
  CMD ["uvicorn", "rag_server:app", "--host", "0.0.0.0", "--port", "8500"]