Skip to content

Commit

Permalink
fix: dockerimage configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoupert committed Feb 1, 2024
1 parent 2a0266d commit 79a902b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ GOARCH=amd64 \
CGO_ENABLED=0

ARG VERSION=v3.2.0
RUN git clone --branch $VERSION --depth 1 https://github.com/boyter/scc
WORKDIR /go/scc
RUN go build -ldflags="-s -w"
COPY . /scc
WORKDIR /scc
RUN go build -ldflags="-s -w" -o /bin/scc

FROM alpine:3.19
COPY --from=scc-get /go/scc/scc /bin/
ENTRYPOINT ["scc"]
COPY --from=scc-get /bin/scc /bin/scc
CMD ["/bin/scc"]

0 comments on commit 79a902b

Please sign in to comment.