-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
28 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
FROM --platform=linux/arm64 arm64v8/golang:1.23 | ||
|
||
RUN go install github.com/playwright-community/playwright-go/cmd/playwright@latest \ | ||
&& playwright install --with-deps | ||
ENV GOARCH=arm64 | ||
ENV GOOS=linux | ||
|
||
RUN go run github.com/playwright-community/playwright-go/cmd/playwright@latest install --with-deps | ||
|
||
WORKDIR /go/src/fitter_cli | ||
|
||
COPY . . | ||
ARG FITTER_CLI_VERSION | ||
|
||
RUN wget -O fitter_cli https://github.com/PxyUp/fitter/releases/download/${FITTER_CLI_VERSION}/fitter_cli_${FITTER_CLI_VERSION}-linux-arm64 | ||
|
||
RUN go mod download | ||
RUN env GOOS=linux GOARCH=arm64 go build -o fitter_cli cmd/cli/main.go | ||
RUN chmod u+x fitter_cli | ||
|
||
CMD ["/fitter_cli"] | ||
ENTRYPOINT ["/go/src/fitter_cli/fitter_cli"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters