Skip to content

Commit b513cbf

Browse files
committed
fix: try to fix dockerfile error
1 parent 1710f2d commit b513cbf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ WORKDIR /workdir
1313
RUN PWGO_VER=$(grep -oE "playwright-go v\S+" /workdir/go.mod | sed 's/playwright-go //g') \
1414
&& go install github.com/playwright-community/playwright-go/cmd/playwright@${PWGO_VER}
1515
# Build your app
16-
RUN GOOS=linux GOARCH=amd64 go build -o /bin/lessapi-duckduckgo
16+
RUN GOOS=linux GOARCH=amd64 go build -o /bin/lessapi-duckduckgo ./cmd/main
1717

1818
# Stage 3: Final
1919
FROM ubuntu:jammy
2020
COPY --from=builder /go/bin/playwright /bin/lessapi-duckduckgo /
2121
COPY ./resource /resource
2222
RUN apt-get update && apt-get install -y ca-certificates tzdata \
23-
# Install dependencies and all browsers (or specify one)
24-
&& /playwright install --with-deps \
23+
&& /playwright install --with-deps Chromium \
2524
&& rm -rf /var/lib/apt/lists/* \
25+
&& chmod +x /lessapi-duckduckgo
2626
CMD ["/lessapi-duckduckgo"]

cmd/run/main.go cmd/main/main.go

File renamed without changes.

0 commit comments

Comments
 (0)