pluviouse commited on
Commit
16703d8
·
verified ·
1 Parent(s): 9067136

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -0
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
24
+
25
+ RUN apt-get clean && rm -rf /var/lib/apt/lists/*
26
+ WORKDIR /app
27
+ RUN git clone https://github.com/pvkimxk/ochinpo-api
28
+ COPY ./ochinpo-api $WORKDIR
29
+ RUN npm i
30
+ EXPOSE 7860
31
+ CMD ["node", "."]