Fixed dockerfile
This commit is contained in:
parent
33fa0842d7
commit
4ae17d2348
1 changed files with 2 additions and 1 deletions
|
|
@ -6,7 +6,8 @@ COPY cmd ./cmd
|
||||||
COPY config ./config
|
COPY config ./config
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/cfdns ./cmd
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/cfdns ./cmd
|
||||||
|
|
||||||
FROM scratch
|
FROM alpine:latest
|
||||||
|
RUN apk --no-cache add ca-certificates
|
||||||
COPY --from=builder /app/cfdns /app/cfdns
|
COPY --from=builder /app/cfdns /app/cfdns
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENTRYPOINT ["/app/cfdns"]
|
ENTRYPOINT ["/app/cfdns"]
|
||||||
Loading…
Reference in a new issue