Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/aunefyren/wrapperr
Browse files Browse the repository at this point in the history
  • Loading branch information
aunefyren committed Dec 20, 2023
2 parents f7f6fde + 6b2732c commit ae1702c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.20.3-bullseye
FROM golang:1.20.4-bullseye as builder

ARG TARGETARCH
ARG TARGETOS
Expand All @@ -11,7 +11,15 @@ WORKDIR /app

COPY . .

RUN GO111MODULE=on CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build
RUN GO111MODULE=on CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build

FROM debian:bullseye-slim as runtime

LABEL org.opencontainers.image.source=https://github.com/aunefyren/wrapperr

WORKDIR /app

COPY --from=builder /app .

EXPOSE ${port}

Expand Down

0 comments on commit ae1702c

Please sign in to comment.