maylinejix commited on
Commit
1b4ea2a
·
verified ·
1 Parent(s): 39ee2e0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -5
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.11-slim
2
 
3
  RUN apt-get update && apt-get install -y \
4
  git \
@@ -25,14 +25,21 @@ RUN apt-get update && apt-get install -y \
25
  libxkbcommon0 \
26
  libxrandr2 \
27
  xdg-utils \
 
 
 
 
 
 
28
  && rm -rf /var/lib/apt/lists/*
29
 
30
  WORKDIR /app
31
 
32
- COPY requirements.txt .
33
- RUN pip install --no-cache-dir -r requirements.txt
 
34
 
35
- RUN python -m camoufox fetch
36
 
37
  COPY . .
38
 
@@ -40,4 +47,4 @@ RUN mkdir -p public
40
 
41
  EXPOSE 7860
42
 
43
- CMD ["python", "app.py"]
 
1
+ FROM node:18-slim
2
 
3
  RUN apt-get update && apt-get install -y \
4
  git \
 
25
  libxkbcommon0 \
26
  libxrandr2 \
27
  xdg-utils \
28
+ libx11-xcb1 \
29
+ libxcb1 \
30
+ libxcomposite1 \
31
+ libxcursor1 \
32
+ libxi6 \
33
+ libxtst6 \
34
  && rm -rf /var/lib/apt/lists/*
35
 
36
  WORKDIR /app
37
 
38
+ COPY package*.json ./
39
+
40
+ RUN npm install
41
 
42
+ RUN npx camoufox fetch
43
 
44
  COPY . .
45
 
 
47
 
48
  EXPOSE 7860
49
 
50
+ CMD ["node", "index.js"]