| |
| FROM node:18-bullseye |
|
|
| |
| WORKDIR /app |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| git \ |
| wget \ |
| curl \ |
| unzip \ |
| fonts-liberation \ |
| libasound2 \ |
| libatk-bridge2.0-0 \ |
| libatk1.0-0 \ |
| libcups2 \ |
| libdbus-1-3 \ |
| libgbm-dev \ |
| libnspr4 \ |
| libnss3 \ |
| libxcomposite1 \ |
| libxdamage1 \ |
| libxfixes3 \ |
| libxrandr2 \ |
| xdg-utils \ |
| libu2f-udev \ |
| libvulkan1 \ |
| xvfb \ |
| --no-install-recommends && \ |
| rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN git clone https://github.com/EMMYHENZ-TECH/henz-api.git /app |
|
|
| |
| RUN chmod -R 777 /app |
|
|
| |
| WORKDIR /app |
| RUN npm install |
|
|
| |
| ENV PLAYWRIGHT_BROWSERS_PATH=/home/node/.cache/ms-playwright |
|
|
| |
| RUN npx playwright install --with-deps chromium |
|
|
| |
| RUN chmod -R 777 /home/node/.cache/ms-playwright |
|
|
| |
| EXPOSE 7860 |
|
|
| |
| CMD ["node", "server.js"] |