Spaces:
Sleeping
Sleeping
# 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 | |
WORKDIR app | |
COPY ./frond ./frond | |
COPY ./back ./back | |
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"] |