fgsi commited on
Commit
9a95384
·
verified ·
1 Parent(s): 4885bdd

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -0
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM mcr.microsoft.com/playwright:focal
2
+ ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD 1
3
+
4
+ RUN apt-get update && \
5
+ apt-get upgrade -y && \
6
+ apt-get install -y software-properties-common && \
7
+ add-apt-repository ppa:deadsnakes/ppa && \
8
+ apt-get update && \
9
+ apt-get install -y python3.9 python3.9-venv python3.9-dev && \
10
+ rm -rf /var/lib/apt/lists/* && \
11
+ update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1
12
+
13
+ ENV TZ=Asia/Jakarta
14
+ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
15
+ ENV MADE=FONGSIDEVV2
16
+ ENV PORT=2007
17
+
18
+ WORKDIR /app
19
+
20
+ RUN --mount=type=secret,id=GITHUB_REPO,required=true \
21
+ git clone -b "WEBP-SERVER" $(cat /run/secrets/GITHUB_REPO) WEBP-SERVER
22
+
23
+ WORKDIR /app/WEBP-SERVER
24
+
25
+ RUN chmod -R 777 /app && \
26
+ npm cache clean --force && \
27
+ npm install --force && \
28
+ npx playwright install --with-deps
29
+
30
+ EXPOSE 2007
31
+ CMD ["npm", "start"]