Skip to content

Commit 9bd5e95

Browse files
committed
fix: install nodejs in docker image
1 parent 7bf8b59 commit 9bd5e95

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

Dockerfile

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
FROM ghcr.io/foundry-rs/foundry:v1.5.0 AS builder
1+
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
211
WORKDIR /app
312

413
COPY . .
514

615
RUN forge build
716

8-
FROM ghcr.io/foundry-rs/foundry:v1.5.0 AS runtime
17+
FROM base AS runtime
918
WORKDIR /app
1019

1120
COPY --from=builder /app .

0 commit comments

Comments
 (0)