File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -2030,6 +2030,23 @@ image:
20302030and then run ` stack image container ` and then ` docker images ` to list
20312031the images.
20322032
2033+ Note that the executable will be built in the development environment
2034+ and copied to the container, so the dev OS must match that of the
2035+ container OS. This is easily accomplished using [ Docker integration] ( docker_integration.md ) ,
2036+ under which the exe emitted by ` stack build ` will be built on the
2037+ Docker container, not the local OS.
2038+
2039+ The executable will be stored under ` /usr/local/bin/<your-project>-exe `
2040+ in the running container.
2041+
2042+ If you want the container to run the executable immediately on startup
2043+ then set an entrypoint as follows:
2044+
2045+ ``` yaml
2046+ entrypoints :
2047+ - <your-project>-exe
2048+ ` ` `
2049+
20332050### Nix
20342051
20352052stack provides an integration with [Nix](http://nixos.org/nix),
You can’t perform that action at this time.
0 commit comments