Created
July 6, 2019 01:06
-
-
Save mwlang/ed2860d96aa83b697a26a7d186c83d1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker-compose build | |
Building hello_world | |
Step 1/4 : FROM crystallang/crystal:latest | |
---> 94db55f89e70 | |
Step 2/4 : WORKDIR /app | |
---> Using cache | |
---> c4cef2a24fe6 | |
Step 3/4 : ADD . /app/ | |
---> a986be8e1c72 | |
Step 4/4 : CMD crystal build src/hello.cr -o bin/hello --release | |
---> Running in 3d8d9bdeed92 | |
Removing intermediate container 3d8d9bdeed92 | |
---> d5afb3f92272 | |
Successfully built d5afb3f92272 | |
Successfully tagged hello:latest | |
docker-compose up | |
Removing hello_hello_world_1 | |
Recreating 9281838a6d12_hello_hello_world_1 ... done | |
Attaching to hello_hello_world_1 | |
hello_world_1 | standard_init_linux.go:207: exec user process caused "exec format error" | |
hello_hello_world_1 exited with code 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
hello_world: | |
build: . | |
image: hello | |
command: /app/bin/hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM crystallang/crystal:latest | |
WORKDIR /app | |
ADD . /app/ | |
CMD crystal build src/hello.cr -o bin/hello --release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment