brain13 / Dockerfile
Elliotasdasdasfasas's picture
Upload folder using huggingface_hub
0443045 verified
raw
history blame contribute delete
502 Bytes
FROM python:3.10
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN apt-get update && apt-get install -y openssh-server
COPY cf_part_* /code/
# User setup
RUN useradd -m -u 1000 user
RUN mkdir -p /code/ssh && chown user:user /code/ssh && chmod 700 /code/ssh
COPY --chown=user . /code
USER user
ENV HOME=/home/user
ENV PATH=/home/user/.local/bin:$PATH
WORKDIR /code
CMD ["python", "app.py"]