Skip to content

Commit 959096a

Browse files
authored
Merge pull request #3261 from wjdhamilton/patch-2
Update Guide.md
2 parents 9f8eb27 + 254ca2d commit 959096a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

doc/GUIDE.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2030,6 +2030,23 @@ image:
20302030
and then run `stack image container` and then `docker images` to list
20312031
the 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
20352052
stack provides an integration with [Nix](http://nixos.org/nix),

0 commit comments

Comments
 (0)