File size: 790 Bytes
60ef5c8
 
 
750887b
 
 
 
 
 
 
 
 
60ef5c8
750887b
 
32a3a5d
 
 
 
 
3765841
32a3a5d
 
 
3765841
 
7ac72e3
32a3a5d
5f8e83f
 
41405e3
aaa9812
cda11f5
6ae190f
 
 
 
aaa9812
32a3a5d
7ac72e3
41405e3
 
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
# 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 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
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"]