Initial commit
This commit is contained in:
commit
1e4ec055ec
18 changed files with 715 additions and 0 deletions
27
Dockerfile
Normal file
27
Dockerfile
Normal file
|
@ -0,0 +1,27 @@
|
|||
FROM golang:1.21.1 as build
|
||||
|
||||
LABEL author="vlbeaudoin"
|
||||
|
||||
WORKDIR /go/src/app
|
||||
|
||||
COPY go.mod go.sum main.go ./
|
||||
|
||||
ADD cmd/ cmd/
|
||||
ADD config/ config/
|
||||
ADD data/ data/
|
||||
ADD handlers/ handlers/
|
||||
ADD models/ models/
|
||||
ADD responses/ responses/
|
||||
ADD templates/ templates/
|
||||
|
||||
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o bottin-ag .
|
||||
|
||||
# Alpine
|
||||
|
||||
FROM alpine:3.18.3
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /go/src/app/bottin-ag /usr/bin/bottin-ag
|
||||
|
||||
CMD ["bottin-ag", "--help"]
|
Reference in a new issue