Préparer à embed

This commit is contained in:
Victor Lacasse-Beaudoin 2023-05-05 19:50:43 -04:00
parent d84f7bb7b6
commit b68859f90b
6 changed files with 11 additions and 1 deletions

View file

@ -27,7 +27,7 @@ WORKDIR /app
ADD contenu/ contenu/
ADD static/ static/
ADD public/static/ static/
COPY --from=build /go/src/app/babillard /usr/bin/babillard

10
public/embed.go Normal file
View file

@ -0,0 +1,10 @@
package public
import "embed"
//go:embed static/*
var embedFS embed.FS
func GetEmbedFS() embed.FS {
return embedFS
}