Haskell Stack Image Container Execute On Docker run

I am following the turorials from stackage and docker to run a haskell build via docker.

Building and Image creation works well and i can run the app via docker run -p 5000:5000 {imagename} {app-exe}

  • Docker stopping after first line
  • Is there an agreed UML diagram style for documenting or illustrating the role of (Docker) containers in a system architecture specification?
  • Null port bindings from inspect, the first time. a second time good. why?
  • Error travis on phpunit when I add docker login
  • How to build and start containers on multiple docker machines
  • How to edit a .py script inside Docker Quickstart Terminal?
  • I am using the build in features of the latest stack to create the docke image with this minimal configuration.

    image:
        container:
           base: "fpco/ubuntu-with-libgmp"
    

    How can i make the image to launch the executable automatically, so that i can just type docker run -p 5000:5000 {imagename}. I know how to do it in a dockerfile but not with stack. I was thinking that I have to use:

    entrypoints:
          - appname-exe
    

    No success, no matter if I just use the name of executable or the absolute path to it. Maybe I don’t understand what the entrypoint is for.

    I am using Docker for Mac.

    Any suggestions appreciated.

    Cheers
    Bjorn

  • Pycharm not showing all files from django external library
  • How to Run a script at the start of Container in Cloud Containers Engine with Kubernetes
  • Get docker version from file
  • OCR docker image
  • How do i get Google Container Registry to accept my json credentials?
  • How can I use a local image as the base image with a dockerfile?
  • One Solution collect form web for “Haskell Stack Image Container Execute On Docker run”

    I figured it out myself. Everything is working correctly, I just didn’t understand that stack creates two seperate images. One just for the environement and one for the entrypoint.

    So I checked docker images and found in deed two images. I was simpy running the wrong image. This is correct
    docker run -p 5000:5000 {imagename-app-exe}

    Man sometimes you don’t see the forest.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.