diff --git a/Dockerfile b/Dockerfile index 5fa348b..ea6216c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/public/embed.go b/public/embed.go new file mode 100644 index 0000000..bfc1ca1 --- /dev/null +++ b/public/embed.go @@ -0,0 +1,10 @@ +package public + +import "embed" + +//go:embed static/* +var embedFS embed.FS + +func GetEmbedFS() embed.FS { + return embedFS +} diff --git a/static/index.html b/public/static/index.html similarity index 100% rename from static/index.html rename to public/static/index.html diff --git a/static/slider.js b/public/static/slider.js similarity index 100% rename from static/slider.js rename to public/static/slider.js diff --git a/static/style.css b/public/static/style.css similarity index 100% rename from static/style.css rename to public/static/style.css diff --git a/static/text.js b/public/static/text.js similarity index 100% rename from static/text.js rename to public/static/text.js