mirror of
https://github.com/Lissy93/web-check.git
synced 2024-11-25 17:53:19 +01:00
14 lines
344 B
Docker
14 lines
344 B
Docker
FROM node:16-buster-slim AS base
|
|
WORKDIR /app
|
|
FROM base AS builder
|
|
COPY . .
|
|
RUN apt-get update && \
|
|
apt-get install -y chromium traceroute && \
|
|
chmod 755 /usr/bin/chromium && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
RUN npm install --force
|
|
RUN npm run build
|
|
EXPOSE ${PORT:-3000}
|
|
ENV CHROME_PATH='/usr/bin/chromium'
|
|
CMD ["npm", "run", "serve"]
|