File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,19 +37,11 @@ COPY . .
3737RUN yarn install --frozen-lockfile && \
3838 yarn build
3939
40- FROM denoland/deno:bin-2.6.10 AS deno_installer
41- FROM gcr.io/distroless/cc@sha256:66d87e170bc2c5e2b8cf853501141c3c55b4e502b8677595c57534df54a68cc5 AS cc
40+ FROM denoland/deno:alpine-2.7.1
4241
43- FROM node:24-alpine
42+ # Install node and npm
43+ RUN apk add --no-cache nodejs npm
4444
45- # Install deno
46- COPY --from=deno_installer /deno /usr/local/bin/deno
47-
48- # Add in shared libraries needed by Deno
49- COPY --from=cc /lib/*-linux-gnu/* /usr/local/lib/
50- COPY --from=cc /lib/ld-linux-* /lib/
51-
52- RUN mkdir /lib64 && ln -s /usr/local/lib/ld-linux-* /lib64/
5345ENV LD_LIBRARY_PATH=/usr/lib:/usr/local/lib
5446
5547# Add non-root user
@@ -69,6 +61,7 @@ COPY --from=builder /build/dist ./node_modules/scan-documents
6961
7062# Change ownership to nodejs user
7163RUN chown -R nodejs:nodejs /app
64+ RUN chown -R nodejs:nodejs /deno-dir
7265
7366# Switch to non-root user
7467USER nodejs
You can’t perform that action at this time.
0 commit comments