File size: 614 Bytes
13ddd87
 
 
30d7adf
13ddd87
 
 
 
 
 
 
 
 
 
 
cc5556d
d457583
 
 
cc5556d
7fa017c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile

FROM python:3.10-slim 

RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"

WORKDIR /app

COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt

COPY --chown=user . /app

# contains files larger than 10 MiB.
COPY --chown=user ./projects/tutorial_1/0 /app/projects/tutorial_1/0

# AutoRAG 실행 명령어를 CMD로 변경
CMD ["autorag", "run_web", "--trial_path", "/app/projects/tutorial_1/0"]