Skip to content

Commit 7c0ef63

Browse files
committed
make the docker example in the readme easier to understand
1 parent 54a6c3f commit 7c0ef63

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,9 @@ rtcv_scraper_client \
210210
Currently we don't have pre build binaries so you'll need to compile the binary yourself
211211

212212
```Dockerfile
213-
# If your final docker image is based on the golang image you can simply run this command
214-
RUN go install github.com/script-development/rtcv_scraper_client
215-
216-
# If your container runtime and build images are separated you can do something like this
217-
RUN git clone https://github.com/script-development/rtcv_scraper_client /root/rtcv_scraper_client
218-
WORKDIR /root/rtcv_scraper_client
219-
RUN go build
220-
# then in your runtime:
221-
COPY --from=build /root/rtcv_scraper_client/rtcv_scraper_client /bin/rtcv_scraper_client
213+
FROM golang:alpine AS obtain-rtcv-client
214+
RUN go install github.com/script-development/rtcv_scraper_client@latest
215+
216+
FROM denoland/deno:alpine AS runtime
217+
COPY --from=obtain-rtcv-client /go/bin/rtcv_scraper_client /bin/rtcv_scraper_client
222218
```

0 commit comments

Comments
 (0)