feat(#3): 📦 Dockerize loic

This commit is contained in:
Daniel Sy 2025-03-28 05:04:05 +01:00
parent 483484e2e2
commit c94fce57ae
Signed by untrusted user who does not match committer: Daniel.Sy
GPG key ID: 1F39A8BBCD2EE3D3

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM golang:1.24 AS builder
WORKDIR /app
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o loic .
RUN ls -l /app/loic
FROM alpine:latest
WORKDIR /app/
COPY --from=builder /app/loic .
COPY pkg/web/templates/ pkg/web/templates/
ENTRYPOINT [ "./loic" ]
CMD [ "web" ]