forked from Daniel.Sy/loic-go
Compare commits
1 commit
main
...
#3-cloudif
Author | SHA1 | Date | |
---|---|---|---|
![]() |
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