| |
| FROM node:20 |
| RUN chmod 1777 /tmp |
| |
| RUN apt-get update && apt-get install -y \ |
| wget \ |
| gnupg \ |
| ca-certificates \ |
| apt-transport-https \ |
| xvfb \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ |
| && echo "deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list \ |
| && apt-get update \ |
| && apt-get install -y google-chrome-stable \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| WORKDIR /app |
|
|
| |
| COPY package*.json ./ |
|
|
| |
| RUN npm install |
|
|
| |
| COPY . . |
|
|
| |
| EXPOSE 8080 |
|
|
| |
|
|
| CMD [ "node", "index.mjs" ] |