Skip to content

Commit

Permalink
Fix Dockerfile.dev (cloudprober#632)
Browse files Browse the repository at this point in the history
Update the Go version and path to the test file.
  • Loading branch information
jumpojoy authored Nov 9, 2023
1 parent 2623da2 commit e8fbd8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Dockerfile for quick development and testing
# To build:
# docker build -t cloudprober:test . -f Dockerfile.dev
FROM golang:1.18-alpine as build
FROM golang:1.21-alpine as build

WORKDIR /app
COPY . /
RUN if [[ ! -f /cloudprober ]]; then go build -o /cloudprober /cmd/cloudprober.go; fi

FROM alpine
COPY --from=build /cloudprober /cloudprober
COPY cloudprober_test.cfg /etc/cloudprober.cfg
COPY cmd/cloudprober_test.cfg /etc/cloudprober.cfg
ENTRYPOINT ["/cloudprober"]

0 comments on commit e8fbd8f

Please sign in to comment.