Trigger82 commited on
Commit
82dacf0
Β·
verified Β·
1 Parent(s): e05ac48

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -24
Dockerfile CHANGED
@@ -1,31 +1,23 @@
1
- FROM node:latest
2
 
3
- ENV CHROME_BIN=/usr/bin/chromium \
4
- TZ=Asia/Jakarta \
5
  DEBIAN_FRONTEND=noninteractive
 
6
  RUN apt-get update && apt-get install -y \
7
- chromium \
8
- ffmpeg \
9
- imagemagick \
10
- libnss3-dev \
11
  git \
12
- webp
13
- RUN apt-get install -yq gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \
14
- libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 \
15
- libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \
16
- libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \
17
- ca-certificates libappindicator1 libnss3 lsb-release xdg-utils
18
- RUN apt-get install -y \
19
- fonts-liberation \
20
- fonts-dejavu \
21
- fonts-noto-color-emoji \
22
- libfontconfig1 --no-install-recommends
23
- RUN apt-get clean && rm -rf /var/lib/apt/lists/*
24
  WORKDIR /app
25
- RUN git clone https://github.com/pvkimxk/ochinpo-api
26
- RUN mv ochinpo-api/* /app
27
- COPY . $WORKDIR
28
- RUN npm i
 
 
29
  EXPOSE 7860
30
 
31
- CMD ["node", "."]
 
1
+ FROM python:3.10-slim # Changed to Python image
2
 
3
+ ENV TZ=Africa/Accra \
 
4
  DEBIAN_FRONTEND=noninteractive
5
+
6
  RUN apt-get update && apt-get install -y \
7
+ build-essential \
 
 
 
8
  git \
9
+ ffmpeg \
10
+ libsm6 \
11
+ libxext6 \
12
+ libgl1-mesa-glx
13
+
 
 
 
 
 
 
 
14
  WORKDIR /app
15
+
16
+ COPY requirements.txt ./
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ COPY . .
20
+
21
  EXPOSE 7860
22
 
23
+ CMD ["python", "app.py"] # Run Python app