Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audit Snyk check/fix 2.8 #11385

Merged
merged 2 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ RUN --mount=type=cache,target=/var/lib/apt/lists \
&& DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes --no-install-recommends \
apt-transport-https gettext less gnupg libpq5 \
python3-dev libgraphviz-dev libpq-dev nodejs \
&& echo "For Chrome installed by Pupetter" \
&& echo "For Chrome installed by Pupetter: https://source.chromium.org/chromium/chromium/src/+/main:chrome/installer/linux/debian/dist_package_versions.json" \
&& DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes --no-install-recommends \
libx11-6 libx11-xcb1 libxcomposite1 libxcursor1 \
libxdamage1 libxext6 libxi6 libxtst6 libnss3 libcups2 libxss1 libxrandr2 libasound2 libatk1.0-0 \
libatk-bridge2.0-0 libpangocairo-1.0-0 libgtk-3.0 libxcb-dri3-0 libgbm1 libxshmfence1 \
libatspi2.0-0 libc6 libcairo2 libdbus-1-3 libdrm2 libexpat1 libglib2.0-0 libnspr4 libpango-1.0-0 \
libstdc++6 libuuid1 libxcb1 libxfixes3 libxkbcommon0 libxrender1 \
&& ln -s /usr/local/lib/libproj.so.* /usr/local/lib/libproj.so

RUN --mount=type=cache,target=/var/lib/apt/lists \
Expand Down Expand Up @@ -222,6 +224,10 @@ WORKDIR /opt/c2cgeoportal/geoportal
COPY geoportal/package.json geoportal/package-lock.json geoportal/.snyk ./

ENV PUPPETEER_CACHE_DIR=/opt
ENV XDG_CONFIG_HOME=/etc/xdg

RUN chmod ugo+rw /etc/xdg

# hadolint ignore=DL3016,SC2046
RUN --mount=type=cache,target=/var/cache,sharing=locked \
--mount=type=cache,target=/root/.cache \
Expand Down
Loading
Loading