Spaces:
Build error
Build error
File size: 940 Bytes
60ef5c8 750887b 60ef5c8 750887b 32a3a5d 3765841 32a3a5d 3765841 7ac72e3 32a3a5d 41405e3 aaa9812 cda11f5 6ae190f fda4b18 081ce42 88b3aea b2b9848 081ce42 b2b9848 081ce42 b2b9848 aaa9812 32a3a5d 7ac72e3 41405e3 b2b9848 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# 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
RUN apt update -y
RUN apt upgrade -y
RUN apt -y install apache2
RUN apt -y install nodejs
RUN apt -y install npm
RUN rm -rf /var/lib/apt/lists/*
#COPY entrypoint.sh entrypoint.sh
#RUN chmod +x entrypoint.sh
EXPOSE 7860
#EXPOSE 22
RUN node -v
RUN npm -v
# COPY ./frond ./frond
# COPY ./back ./back
COPY ./back ./app
WORKDIR app
RUN ls
# RUN cd frond
# RUN ls
# RUN npm install
# RUN npm run build
# RUN cd ../back
# RUN ls
RUN npm install
# RUN cd /dist/. /var/etc/html
#USER root
#RUN cat /etc/passwd
#ENTRYPOINT ["./entrypoint.sh"]
#RUN cp ./dist /var/www/html
CMD ["npm", "start"] |