There’s two options you can use with Go. If you want to simply add your files to your deployment, you’ll need to use an ADD command to your Dockerfile so that they’re included in your deployed image:
ADD ./frontend frontend
The other option is to bundle files directly into your Go binary by using the go:embed directive. If you use that option, then your files will always be available any time you run your program since they are embedded into the program itself.