Skip to content

Instantly share code, notes, and snippets.

@mwlang
Created July 6, 2019 01:06
Show Gist options
  • Save mwlang/ed2860d96aa83b697a26a7d186c83d1a to your computer and use it in GitHub Desktop.
Save mwlang/ed2860d96aa83b697a26a7d186c83d1a to your computer and use it in GitHub Desktop.
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
version: '3'
services:
hello_world:
build: .
image: hello
command: /app/bin/hello
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