forked from Daniel.Sy/loic-go
feat(#3): 📦 Dockerize loic
This commit is contained in:
parent
483484e2e2
commit
c94fce57ae
1 changed files with 12 additions and 0 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal 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" ]
|
Loading…
Reference in a new issue