web-check/Dockerfile

13 lines
317 B
Docker
Raw Normal View History

2023-07-22 21:31:35 +02:00
FROM node:16-buster-slim AS base
WORKDIR /app
FROM base AS builder
COPY . .
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/*
RUN npm install --force
EXPOSE 8888
2023-07-25 06:15:55 +02:00
ENV CHROME_PATH='/usr/bin/chromium'
CMD ["npm", "run", "serve"]