use template files instead of statik in dev Dockerfile

This commit is contained in:
Dmitry Verkhoturov
2020-10-07 19:32:39 -05:00
committed by Umputun
parent 36dce6c2ac
commit bec6bcee0d
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -32,7 +32,7 @@ func NewFS() *FS {
// ReadFile depends on statik achieve exists
func (f *FS) ReadFile(path string) ([]byte, error) {
if f.statik != nil {
return fs.ReadFile(f.statik, filepath.Join("/", path))
return fs.ReadFile(f.statik, filepath.Join("/", path)) //nolint:gocritic // root folder is a requirement for statik
}
return ioutil.ReadFile(filepath.Join("./", filepath.Clean(path)))
return ioutil.ReadFile(filepath.Clean(path))
}