Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Jun 5, 2023
1 parent ad0ac01 commit f9061d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/micro-platform/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.12.1 as builder
FROM alpine:3.18 as builder

COPY --from=golang:1.18-alpine /usr/local/go/ /usr/local/go/
COPY --from=golang:1.20-alpine /usr/local/go/ /usr/local/go/
ENV PATH="/usr/local/go/bin:${PATH}"
RUN apk --no-cache add make git gcc libtool musl-dev

Expand All @@ -10,8 +10,8 @@ RUN go mod download
COPY . /
RUN make build; rm -rf $GOPATH/pkg/mod

FROM alpine:3.12.1
COPY --from=golang:1.18-alpine /usr/local/go/ /usr/local/go/
FROM alpine:3.18
COPY --from=golang:1.20-alpine /usr/local/go/ /usr/local/go/
ENV PATH="/usr/local/go/bin:${PATH}"

RUN apk --no-cache add make git gcc libtool musl-dev
Expand Down

0 comments on commit f9061d6

Please sign in to comment.