Spaces:
Runtime error
Runtime error
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"] |