DOCKERFILE
This commit is contained in:
parent
419cf10fb2
commit
fc7d5c71d6
@ -6,7 +6,7 @@ RUN apt update && apt install git
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go mod tidy
|
RUN go mod tidy
|
||||||
RUN go run github.com/playwright-community/playwright-go/cmd/playwright@latest install --with-deps
|
RUN go run github.com/playwright-community/playwright-go/cmd/playwright@latest install --with-deps
|
||||||
# https://stackoverflow.com/questions/70369368/check-architecture-in-dockerfile-to-get-amd-arm
|
# https://stackoverflow.com/questions/70369368/check-architecture-in-dockerfile-to-get-amd-arm
|
||||||
RUN go build -o bin/crawler \
|
RUN go build -o bin/crawler \
|
||||||
-ldflags "-X main.Shortsha=${SHORTSHA} \
|
-ldflags "-X main.Shortsha=${SHORTSHA} \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user