Skip to content

Commit

Permalink
feat: update init.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
jialong.wang committed Mar 28, 2024
1 parent 1c62ce3 commit 7811dfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM golang:1.21 as build
FROM --platform=linux/amd64 golang:1.21 as build
COPY . /app/amprobe
ENV GO111MODULE="on" \
GOPROXY=https://goproxy.cn,direct
GOPROXY=https://goproxy.cn,direct

RUN cd /app/amprobe && \
GOOS=linux go build -a -tags netgo -o /app/amprobe/amprobe ./cmd/amprobe
GOOS=linux go build -a -tags netgo -o /app/amprobe/amprobe ./cmd/amprobe

FROM ubuntu:22.04
FROM --platform=linux/amd64 ubuntu:22.04
WORKDIR /app

COPY --from=build /app/amprobe/amprobe /app/
Expand Down
Binary file removed amprobe
Binary file not shown.

0 comments on commit 7811dfb

Please sign in to comment.