test / Dockerfile
yuni0725
init4
f1fcafe
raw
history blame contribute delete
411 Bytes
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"]