mirror of
https://github.com/Lissy93/web-check.git
synced 2024-11-22 08:13:59 +01:00
23 lines
379 B
Docker
23 lines
379 B
Docker
FROM node:16-buster-slim
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y chromium traceroute && \
|
|
chmod 755 /usr/bin/chromium && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json yarn.lock ./
|
|
|
|
RUN yarn install && \
|
|
rm -rf /app/node_modules/.cache
|
|
|
|
COPY . .
|
|
|
|
RUN yarn build
|
|
|
|
EXPOSE ${PORT:-3000}
|
|
|
|
ENV CHROME_PATH='/usr/bin/chromium'
|
|
|
|
CMD ["yarn", "serve"] |