agosh commited on
Commit
19e95b7
verified
1 Parent(s): 3362e49

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -10
Dockerfile CHANGED
@@ -1,27 +1,35 @@
1
  # Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
- # you will also find guides on how best to write your Dockerfile
3
- FROM python:3.10-slim
4
 
5
- # Instala depend锚ncias do sistema
 
 
 
6
  RUN apt-get update && \
7
  apt-get install -y build-essential libffi-dev libssl-dev \
8
  libx11-6 libxext6 libxrender-dev libxrandr-dev x11-utils \
9
- libxtst-dev libxi-dev libgl1 git curl procps && \
 
 
10
  rm -rf /var/lib/apt/lists/*
11
 
12
- # Cria diret贸rio do app
 
13
  WORKDIR /app
14
 
15
- # Copia arquivos
16
- COPY requirements.txt .
17
- RUN pip install --no-cache-dir -r requirements.txt
18
 
19
  COPY . .
20
 
21
- # Porta padr茫o da Hugging Face Spaces com Docker
 
 
22
  EXPOSE 7860
23
 
24
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
25
 
26
 
27
  # FROM python:3.9
 
1
  # Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
 
 
2
 
3
+
4
+
5
+ FROM ubuntu:latest
6
+
7
  RUN apt-get update && \
8
  apt-get install -y build-essential libffi-dev libssl-dev \
9
  libx11-6 libxext6 libxrender-dev libxrandr-dev x11-utils \
10
+ libxtst-dev libxi-dev libgl1 git curl procps fish && \
11
+ curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
12
+ apt-get install -y nodejs && \
13
  rm -rf /var/lib/apt/lists/*
14
 
15
+ USER root
16
+
17
  WORKDIR /app
18
 
19
+ RUN npm install -g node-pty
 
 
20
 
21
  COPY . .
22
 
23
+ RUN mkdir -p /run/demonss/ && \
24
+ cp /app/server.js /run/demonss/server.js
25
+
26
  EXPOSE 7860
27
 
28
+ CMD ["node", "/run/demonss/server.js"]
29
+
30
+
31
+
32
+
33
 
34
 
35
  # FROM python:3.9