We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bf8b59 commit 9bd5e95Copy full SHA for 9bd5e95
1 file changed
Dockerfile
@@ -1,11 +1,20 @@
1
-FROM ghcr.io/foundry-rs/foundry:v1.5.0 AS builder
+FROM ghcr.io/foundry-rs/foundry:v1.5.0 AS base
2
+WORKDIR /app
3
+
4
+USER root
5
+RUN apt-get update \
6
+ && apt-get install -y --no-install-recommends nodejs npm \
7
+ && rm -rf /var/lib/apt/lists/*
8
+USER foundry
9
10
+FROM base AS builder
11
WORKDIR /app
12
13
COPY . .
14
15
RUN forge build
16
-FROM ghcr.io/foundry-rs/foundry:v1.5.0 AS runtime
17
+FROM base AS runtime
18
19
20
COPY --from=builder /app .
0 commit comments