Skip to content

Commit

Permalink
feat: update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
amuluze committed Mar 17, 2024
1 parent 60e9d76 commit 3aeb27e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM --platform=linux/amd64 golang:1.21 as build
FROM golang:1.21 as build
COPY . /app/amprobe
ENV GO111MODULE="on" \
GOPROXY=https://goproxy.cn,direct

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

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

COPY --from=build /app/amprobe/amprobe /app/
Expand Down

0 comments on commit 3aeb27e

Please sign in to comment.