Skip to content

Commit

Permalink
Merge pull request #1 from lhoupert/feat/docker-image-build
Browse files Browse the repository at this point in the history
Feat/docker image build
  • Loading branch information
lhoupert authored Jan 5, 2024
2 parents 1740212 + dc7d294 commit a43a9bd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM golang:1.22rc1-alpine3.19 as scc-get

ENV GOOS=linux \
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"

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

0 comments on commit a43a9bd

Please sign in to comment.