semuthitamku commited on
Commit
19ed56b
·
verified ·
1 Parent(s): 473e4a9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -15
Dockerfile CHANGED
@@ -6,8 +6,7 @@ ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 \
6
  CHROME_BIN=/usr/bin/chromium \
7
  TZ=Asia/Jakarta \
8
  DEBIAN_FRONTEND=noninteractive \
9
- PORT=3000 \
10
- MADE=PAXSENIXAPI
11
 
12
  # install dependencies
13
  RUN apt-get update && \
@@ -70,18 +69,8 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
70
  # set working directory
71
  WORKDIR /app
72
 
73
- # clone private repo using a secret
74
- RUN --mount=type=secret,id=GITHUB_REPO,required=true \
75
- git clone $(cat /run/secrets/GITHUB_REPO) PAXSENIXAPI-SERVER
76
-
77
- # set working directory to cloned repo
78
- WORKDIR /app/PAXSENIXAPI-SERVER
79
-
80
  # install dependencies
81
- RUN chmod -R 777 /app && \
82
- npm cache clean --force && \
83
- npm install --force && \
84
- npx playwright install --with-deps
85
 
86
  # install python dependencies (if any)
87
  COPY requirements.txt .
@@ -89,10 +78,10 @@ RUN python3 -m venv venv && \
89
  . venv/bin/activate && \
90
  pip install --no-cache-dir -r requirements.txt
91
 
92
- ENV PATH="/app/PAXSENIXAPI-SERVER/venv/bin:$PATH"
93
 
94
  # expose port
95
- EXPOSE 3000
96
 
97
  # start the application
98
  CMD ["python3", "main.py"]
 
6
  CHROME_BIN=/usr/bin/chromium \
7
  TZ=Asia/Jakarta \
8
  DEBIAN_FRONTEND=noninteractive \
9
+ PORT=7860
 
10
 
11
  # install dependencies
12
  RUN apt-get update && \
 
69
  # set working directory
70
  WORKDIR /app
71
 
 
 
 
 
 
 
 
72
  # install dependencies
73
+ RUN chmod -R 777 /app
 
 
 
74
 
75
  # install python dependencies (if any)
76
  COPY requirements.txt .
 
78
  . venv/bin/activate && \
79
  pip install --no-cache-dir -r requirements.txt
80
 
81
+ # ENV PATH="/app/PAXSENIXAPI-SERVER/venv/bin:$PATH"
82
 
83
  # expose port
84
+ EXPOSE 7860
85
 
86
  # start the application
87
  CMD ["python3", "main.py"]