major v7: Standardiser l'organisation du projet
This commit is contained in:
parent
7c4e8d8227
commit
6cdc40926b
17 changed files with 72 additions and 66 deletions
16
Dockerfile
16
Dockerfile
|
@ -1,4 +1,4 @@
|
|||
FROM golang:1.21.4 as build
|
||||
FROM golang:1.23 as build
|
||||
|
||||
LABEL author="Victor Lacasse-Beaudoin <vlbeaudoin@agecem.org>"
|
||||
LABEL license="MIT"
|
||||
|
@ -7,23 +7,17 @@ LABEL repo="https://git.agecem.com/agecem/babillard"
|
|||
|
||||
WORKDIR /go/src/app
|
||||
|
||||
COPY go.mod go.sum main.go ./
|
||||
COPY go.mod go.sum ./
|
||||
|
||||
ADD cmd/ cmd/
|
||||
|
||||
ADD config/ config/
|
||||
|
||||
ADD data/ data/
|
||||
|
||||
ADD handlers/ handlers/
|
||||
|
||||
ADD public/ public/
|
||||
ADD pkg/ pkg/
|
||||
ADD ui/ ui/
|
||||
|
||||
RUN CGO_ENABLED=0 go build -a -o babillard .
|
||||
|
||||
# Alpine
|
||||
|
||||
FROM alpine:3.18.4
|
||||
FROM alpine:3.21
|
||||
|
||||
RUN apk update && apk upgrade --no-cache
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue