Initial MVP commit
This commit is contained in:
commit
7bcf16a1d4
24 changed files with 2781 additions and 0 deletions
19
Containerfile
Normal file
19
Containerfile
Normal file
|
@ -0,0 +1,19 @@
|
|||
FROM docker.io/golang:1.23 AS builder
|
||||
|
||||
RUN apt-get update && apt-get install -y libsystemd-dev
|
||||
|
||||
WORKDIR /goatcounter-systemd/
|
||||
|
||||
COPY ./ /goatcounter-systemd/
|
||||
|
||||
ENV GOCACHE="/go/pkg/mod"
|
||||
RUN --mount=type=cache,target="/go/pkg/mod" go build \
|
||||
-o /usr/local/bin/goatcounter-systemd
|
||||
|
||||
FROM docker.io/debian:stable-slim
|
||||
|
||||
COPY --from=builder /usr/local/bin/goatcounter-systemd /usr/local/bin/goatcounter-systemd
|
||||
|
||||
USER nobody
|
||||
|
||||
ENTRYPOINT [ "/usr/local/bin/goatcounter-systemd" ]
|
Loading…
Add table
Add a link
Reference in a new issue