Spaces:
Running
Running
File size: 751 Bytes
5e8f045 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
FROM python:3.9-slim
WORKDIR /app
# ์์คํ
ํจํค์ง ์
๋ฐ์ดํธ ๋ฐ ํ์์กด ์ค์
RUN apt-get update && apt-get install -y \
git \
curl \
tzdata \
&& rm -rf /var/lib/apt/lists/*
# ํ์์กด์ Asia/Seoul๋ก ์ค์
ENV TZ=Asia/Seoul
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Python ์์กด์ฑ ์ค์น
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# ์ ํ๋ฆฌ์ผ์ด์
ํ์ผ ๋ณต์ฌ
COPY . .
# ๊ถํ ์ค์
RUN chmod +x quick_start.sh
# ํ๊ฒฝ๋ณ์ ์ค์
ENV PYTHONPATH=/app
ENV GRADIO_SERVER_NAME=0.0.0.0
ENV GRADIO_SERVER_PORT=7860
# ํฌํธ ๋
ธ์ถ
EXPOSE 7860
# ๊ธฐ๋ณธ ๋ช
๋ น์ด
CMD ["python", "app.py"]
|