Skip to content

Commit

Permalink
fix: convert line endings of Dockerfile to linux (#952)
Browse files Browse the repository at this point in the history
* fix: convert line endings of Dockerfile to linux

* bump httpd version

---------

Co-authored-by: Ahmed Elsabbahy <[email protected]>
  • Loading branch information
dklimpel and aelsabbahy authored Aug 29, 2024
1 parent 2d8846d commit 9d9b95f
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
ARG GO_VERSION=1.22

FROM docker.io/golang:${GO_VERSION}-alpine AS base

ARG GOSS_VERSION=v0.0.0
WORKDIR /build

RUN --mount=target=. \
CGO_ENABLED=0 go build \
-ldflags "-X github.com/goss-org/goss/util.Version=${GOSS_VERSION} -s -w" \
-o "/release/goss" \
./cmd/goss

FROM alpine:3.19

COPY --from=base /release/* /usr/bin/

RUN mkdir /goss
VOLUME /goss
ARG GO_VERSION=1.22

FROM docker.io/golang:${GO_VERSION}-alpine AS base

ARG GOSS_VERSION=v0.0.0
WORKDIR /build

RUN --mount=target=. \
CGO_ENABLED=0 go build \
-ldflags "-X github.com/goss-org/goss/util.Version=${GOSS_VERSION} -s -w" \
-o "/release/goss" \
./cmd/goss

FROM alpine:3.19

COPY --from=base /release/* /usr/bin/

RUN mkdir /goss
VOLUME /goss

0 comments on commit 9d9b95f

Please sign in to comment.