forked from RedHatInsights/frontend-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (16 loc) · 709 Bytes
/
Dockerfile
File metadata and controls
18 lines (16 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM registry.access.redhat.com/ubi8/nodejs-16
USER root
WORKDIR /docs
COPY ./packages /docs/packages
COPY ./tsconfig.json /docs/tsconfig.json
# Clear any modules from disk
RUN rm -rf /docs/packages/*/node_modules
WORKDIR /docs/packages/docs
RUN npm i
RUN npm run build
RUN npm i puppeteer
# install puppeteer/chromium dependencies
RUN dnf install -y bzip2 fontconfig nss.x86_64 pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXtst.x86_64 cups-libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64 GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 libdrm libgbm libxshmfence GConf2 nss libXScrnSaver alsa-lib wget
EXPOSE 3000
USER 1001
CMD node server.js