File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -9,18 +9,11 @@ FROM golang:1.21 as builder
9
9
COPY --from=modules /go/pkg /go/pkg
10
10
COPY . /workdir
11
11
WORKDIR /workdir
12
- # Install playwright cli with right version for later use
13
- RUN PWGO_VER=$(grep -oE "playwright-go v\S +" /workdir/go.mod | sed 's/playwright-go //g' ) \
14
- && go install github.com/playwright-community/playwright-go/cmd/playwright@${PWGO_VER}
15
- # Build your app
16
12
RUN GOOS=linux GOARCH=amd64 go build -o /bin/lessapi-duckduckgo ./cmd/main
17
13
18
14
# Stage 3: Final
19
- FROM ubuntu:jammy
20
- COPY --from=builder /go/bin/playwright / bin/lessapi-duckduckgo /
15
+ FROM lessapi/base-env- ubuntu-playwright-go:ubuntu22.04-pwgo-v0.4201.1
16
+ COPY --from=builder /bin/lessapi-duckduckgo /
21
17
COPY ./resource /resource
22
- RUN apt-get update && apt-get install -y ca-certificates tzdata \
23
- && /playwright install --with-deps chromium \
24
- && rm -rf /var/lib/apt/lists/* \
25
- && chmod +x /lessapi-duckduckgo
18
+ RUN chmod +x /lessapi-duckduckgo
26
19
CMD ["/lessapi-duckduckgo" ]
You can’t perform that action at this time.
0 commit comments