| |
| FROM mcr.microsoft.com/playwright:focal |
| ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD 1 |
|
|
| |
| 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 python3-pip && \ |
| rm -rf /var/lib/apt/lists/* && \ |
| update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 1 |
|
|
| |
| ENV TZ=Asia/Jakarta |
| RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone |
|
|
| |
| WORKDIR /app |
|
|
| |
| COPY . . |
|
|
| |
| RUN chmod -R 777 /app |
|
|
| |
| |
| RUN npm cache clean --force && \ |
| npm install --force && \ |
| npx playwright install chromium --with-deps |
|
|
| |
| EXPOSE 7860 |
|
|
| |
| CMD ["npm", "start"] |