testing-area / Dockerfile
chartManD's picture
Cambio de workdir y user a root
8ca03e1
raw
history blame
532 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 debian:12.6
# COPY ./app ./app
# COPY entrypoint.sh entrypoint.sh
# RUN chmod +x entrypoint.sh
# EXPOSE 7860
# EXPOSE 22
# RUN cat /etc/passwd
# ENTRYPOINT ["./entrypoint.sh"]
# CMD ["bash"]
FROM debian:12.6
COPY . ./app
COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh
EXPOSE 7860
EXPOSE 22
WORKDIR /app
USER root
#RUN cat /etc/passwd
ENTRYPOINT ["./entrypoint.sh"]
CMD ["bash"]