Compare commits

...

1 commit

Author SHA1 Message Date
Daniel Sy
c94fce57ae
feat(#3): 📦 Dockerize loic 2025-03-28 05:04:05 +01:00

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" ]