Initial commit

This commit is contained in:
Victor Lacasse-Beaudoin 2025-02-27 14:13:21 -05:00
commit 02947128bc
24 changed files with 1126 additions and 0 deletions

23
Dockerfile Normal file
View file

@ -0,0 +1,23 @@
FROM golang:1.23 as build
LABEL author="vlbeaudoin"
WORKDIR /go/src/app
COPY LICENSE cmd.go config.go db.go entity.go flag.go go.mod go.sum handler.go main.go server.go ./
ADD queries/ queries/
ADD ui/ ui/
RUN CGO_ENABLED=0 go build \
-a \
-o presences \
./
# Alpine
FROM alpine:3.21 as run
COPY --from=build /go/src/app/presences /usr/bin/presences
CMD ["presences", "-h"]