Compiling issue - modifying any files in the public folder has no effect when compiling the docker image
gionko opened this issue · 1 comments
Hi,
i have clone your git hub repo
https://github.com/criticalstack/quake-kube.git
and edit the file
quake-kube/public/index.html
adding this lines
args.push.apply(args, ['+set', 'cg_drawfps', '"1"'])
args.push.apply(args, ['+set', 'cg_fov', '"115"'])
after line 142.
but after compiling the docker image, the changes have no effect. Compilation is successful.
In directory
quake-kube/public/
it's file called zz_generated.static.go and inside is (line 217):
"/index.html": &vfsgen۰CompressedFileInfo{ name: "index.html", modTime: time.Time{}, uncompressedSize: 6166, compressedContent: []byte("\x1f\x8b\x08\... ...\x00\x00"),
perhaps the index.html file is not recompressed and converted. How can I solve?
ok, i found a solution:
in Dockerfile add after line 12
COPY tools tools/
RUN /usr/local/go/bin/go run ./tools/genstatic.go public public
and in .dockerignore file remove
tools
now when you compile a docker image, the zz_generated.static.go file is regenerated based on the changes made in the public folder