Spaces:
Build error
Build error
Download Dockerfile from chartManD/testing-area: direct link, hf CLI and curl.
- Browser
- Download file 940 Bytes
-
https://huggingface.co/spaces/chartManD/testing-area/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/chartManD/testing-area/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/chartManD/testing-area/resolve/main/Dockerfile
940 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 | |
| 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"] |