Skip to content

Commit

Permalink
build(docker): support darwin platform
Browse files Browse the repository at this point in the history
  • Loading branch information
wenfengwang committed Apr 25, 2024
1 parent 13f3fc1 commit 5ae9953
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN pipx install poetry
ENV PATH="/root/.local/bin:${PATH}"
RUN poetry install
RUN poetry run playwright install chromium
RUN poetry run playwright install-deps
RUN poetry run playwright install-deps chromium

ENV NPI_CONFIG_FILE="/npiai/config/config.yaml"

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ LD_FLAGS += -X 'main.BuildDate=${DATE}'
LD_FLAGS += -X 'main.Platform=${GOOS}/${GOARCH}'

GO_BUILD = GOOS=$(GOOS) GOARCH=$(GOARCH) go build -C ${NPI_CMD_ROOT}/cli -trimpath
DOCKER_PLATFORM ?= linux/amd64,linux/arm64
DOCKER_PLATFORM ?= linux/amd64,linux/arm64,darwin/amd64,darwin/arm64

build-npi:
$(GO_BUILD) -ldflags "${LD_FLAGS}" -o ${CMD_OUTPUT_DIR}/npi ${NPI_CMD_ROOT}/cli
Expand Down

0 comments on commit 5ae9953

Please sign in to comment.