Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(build): Add runtime image based on Debian #285

Open
wants to merge 1 commit into
base: primary
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:latest
FROM golang:latest AS builder

LABEL org.opencontainers.image.source https://github.com/telenornms/skogul

Expand All @@ -12,4 +12,13 @@ COPY . .

RUN make skogul

ENTRYPOINT ["./skogul"]
# Runtime
FROM debian:stable-slim

RUN apt update && apt install -y \
ca-certificates

COPY --from=builder /go/src/skogul /usr/local/bin/skogul
COPY --from=builder /go/src/docs/examples/basics/default.json /etc/skogul/conf.d/default.json

ENTRYPOINT ["skogul", "-loglevel=i"]