CoolFace
Apppublic

lint/gitio-array-median

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
Dockerfile23 linesDownload Raw Back to root
1FROM python:3.102 3WORKDIR /code4 5COPY ./requirements.txt /code/requirements.txt6 7RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt8 9# Set up a new user named "user" with user ID 100010RUN useradd -m -u 1000 user11# Switch to the "user" user12USER user13# Set home to the user's home directory14ENV HOME=/home/user \15    PATH=/home/user/.local/bin:$PATH16 17# Set the working directory to the user's home directory18WORKDIR $HOME/app19 20# Copy the current directory contents into the container at $HOME/app setting the owner to the user21COPY --chown=user . $HOME/app22 23CMD ["lite", "demo.yaml", "launch", "--server_name", "0.0.0.0", "--server_port", "7860"]