File size: 411 Bytes
a64a86e
 
 
 
16b19c9
f80395f
16b19c9
f80395f
 
 
f1fcafe
a64a86e
 
f80395f
 
16b19c9
f80395f
a64a86e
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.11-slim

WORKDIR /app

ENV TRANSFORMERS_CACHE=/app/cache
ENV HF_HOME=/app/hf_home

# ์บ์‹œ ํด๋” ์ƒ์„ฑ + ๊ถŒํ•œ ๋ถ€์—ฌ
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
RUN mkdir -p /app/hf_home && chmod -R 777 /app/hf_home
RUN mkdir -p /app/models && chmod -R 777 /app/models


COPY requirements.txt .
RUN pip install -r requirements.txt

COPY main.py .

EXPOSE 7860
CMD ["python", "main.py"]