fgsi commited on
Commit
abc22a5
·
verified ·
1 Parent(s): 2cb998b

Create Dockerfile

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