Skip to content
Snippets Groups Projects
Commit 35d75f83 authored by Jonas Zohren's avatar Jonas Zohren
Browse files

Fix: Switch from distroless to node:alpine image

Chrome (via Puppeteer) misses a shared library on distroless.
To fix this, switch to node:12-alpine
parent 4bf668fe
Branches
No related tags found
No related merge requests found
...@@ -12,7 +12,9 @@ WORKDIR /build ...@@ -12,7 +12,9 @@ WORKDIR /build
RUN npm ci --only=production RUN npm ci --only=production
# Create hardened runtime image # Create hardened runtime image
FROM gcr.io/distroless/nodejs:12 # Distroless seems to not work with puppeteer: "chrome: error while loading shared libraries: libgobject-2.0.so.0"
# FROM gcr.io/distroless/nodejs:12
FROM node:12-alpine
COPY --from=build-env-server /build /app COPY --from=build-env-server /build /app
COPY --from=build-env-webapp /build/public /app/public COPY --from=build-env-webapp /build/public /app/public
WORKDIR /app WORKDIR /app
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment