2023-09-01 12:42:53 +02:00
|
|
|
FROM node:16-buster-slim
|
|
|
|
|
2023-07-22 21:31:35 +02:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y chromium traceroute && \
|
2023-07-25 06:15:55 +02:00
|
|
|
chmod 755 /usr/bin/chromium && \
|
2023-07-22 21:31:35 +02:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
2023-09-01 12:42:53 +02:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY package.json yarn.lock ./
|
|
|
|
|
|
|
|
RUN yarn install && \
|
|
|
|
rm -rf /app/node_modules/.cache
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN yarn build
|
|
|
|
|
2023-08-10 22:24:52 +02:00
|
|
|
EXPOSE ${PORT:-3000}
|
2023-09-01 12:42:53 +02:00
|
|
|
|
2023-07-25 06:15:55 +02:00
|
|
|
ENV CHROME_PATH='/usr/bin/chromium'
|
2023-09-01 12:42:53 +02:00
|
|
|
|
|
|
|
CMD ["yarn", "serve"]
|