testing-area / Dockerfile
chartManD's picture
mostrar node y npm version 1.1
cda11f5
raw
history blame
766 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
RUN apt update -y
RUN apt upgrade -y
RUN apt -y install apache2
RUN apt -y install nodejs
RUN rm -rf /var/lib/apt/lists/*
COPY entrypoint.sh entrypoint.sh
RUN chmod +x entrypoint.sh
EXPOSE 7860
#EXPOSE 22
WORKDIR app
RUN ls
RUN node -v
RUN npm -v
#RUN npm install
# RUN npm build
# RUN cd /dist/. /var/etc/html
#USER root
#RUN cat /etc/passwd
#ENTRYPOINT ["./entrypoint.sh"]
CMD ["node", "mocos.js"]