llm_tts / Dockerfile
MJSHIN0122's picture
python version change
5f88b07
raw
history blame
518 Bytes
FROM python:3.10
# ν•„μš”ν•œ νŒ¨ν‚€μ§€ μ„€μΉ˜ (μ—¬κΈ°μ„œλŠ” git 포함)
RUN apt-get update \
&& apt-get install -y git \
&& rm -rf /var/lib/apt/lists/*
# non-root μ‚¬μš©μž 생성
RUN useradd -m myuser
# μž‘μ—… 디렉토리 μ„€μ •
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# 파일 μ†Œμœ κΆŒ λ³€κ²½
RUN chown -R myuser:myuser /app
COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh
# μ‚¬μš©μž λ³€κ²½
USER myuser
CMD ["./entrypoint.sh"]