Skip to content

Commit 54a4412

Browse files
committed
fix: change target directory
1 parent 208926e commit 54a4412

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ WORKDIR /usr/src/edge-runtime
55
RUN --mount=type=cache,target=/usr/local/cargo/registry,id=${TARGETPLATFORM} \
66
cargo install cargo-strip
77
COPY . .
8-
RUN --mount=type=cache,target=/usr/local/cargo/registry,id=${TARGETPLATFORM} --mount=type=cache,target=/usr/target,id=${TARGETPLATFORM} \
9-
cargo build --release --target-dir /usr/target && \
10-
cargo strip
8+
RUN --mount=type=cache,target=/usr/local/cargo/registry,id=${TARGETPLATFORM} --mount=type=cache,target=/root/target,id=${TARGETPLATFORM} \
9+
cargo build --release && \
10+
cargo strip && \
11+
mv /root/target/release/edge-runtime /root
12+
1113

1214
FROM debian:bullseye-slim
1315
RUN apt-get update && apt-get install -y libssl-dev && rm -rf /var/lib/apt/lists/*
14-
COPY --from=builder /usr/target/release/edge-runtime /usr/local/bin/edge-runtime
16+
COPY --from=builder /root/edge-runtime /usr/local/bin/edge-runtime
1517
ENTRYPOINT ["edge-runtime"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ using Docker:
2020

2121
```
2222
docker build -t edge-runtime .
23-
docker run -it --rm -p 9000:9000 -v /path/to/supabase/functions:/usr/services edge-runtime start --dir /usr/services
23+
docker run -it --rm -p 9000:9000 -v /path/to/supabase/functions:/usr/services supabase/edge-runtime start --dir /usr/services
2424
```
2525

2626
## TODO

0 commit comments

Comments
 (0)