File size: 831 Bytes
b2bfa43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM mcr.microsoft.com/playwright:focal

ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
ENV TZ=Asia/Jakarta
ENV MADE=FONGSIDEVV2
ENV PORT=16789

RUN apt-get update && \
    apt-get upgrade -y && \
    apt-get install -y software-properties-common && \
    add-apt-repository ppa:deadsnakes/ppa && \
    apt-get update && \
    apt-get install -y python3.9 python3.9-venv python3.9-dev && \
    rm -rf /var/lib/apt/lists/* && \
    update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1

WORKDIR /app

RUN --mount=type=secret,id=GITHUB_REPO,required=true \
  git clone -b "CAPCUT-SERVER" $(cat /run/secrets/GITHUB_REPO) CAPCUT-SERVER

WORKDIR /app/CAPCUT-SERVER

RUN chmod -R 777 /app && \
  npm cache clean --force && \
  npm install --force && \
  npx playwright install --with-deps

EXPOSE 16789
CMD ["npm", "start"]