Spaces:
Runtime error
Runtime error
File size: 518 Bytes
b7a937b 06da17b b7a937b 06da17b b7a937b 06da17b b7a937b 06da17b b7a937b 06da17b b7a937b |
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 |
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"] |