fcfffc / Dockerfile
coollsd's picture
Update Dockerfile
4bfedf4 verified
raw
history blame
427 Bytes
FROM python:3.9
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /code
COPY --chown=user ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY --chown=user . /code/
# Make the start script executable
USER root
RUN chmod +x /code/start.sh
USER user
# Use the start script as the entry point
CMD ["/bin/bash", "/code/start.sh"]