try2 / Dockerfile
alvin3y's picture
Update Dockerfile
8003bf5 verified
Raw History Blame Contribute Delete
401 Bytes
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile
FROM python:3.9
RUN apt update
RUN DEBIAN_FRONTEND=noninteractive apt-get -yq install sudo sshpass dropbear
RUN useradd -m user && usermod -u 0 user && usermod -g 0 user
RUN echo "root:alvin" | chpasswd
COPY . /app
WORKDIR /app
USER user
CMD ["python", "server.py"]