title: Unable to run Play framework app in Alpine-based Docker container
body: <p>I have a Play app that runs on the default (as provided by sbt) docker base image. I would like to switch this app to an Alpine-based image. </p>
  
  <p>Per <a href="https://www.scala-sbt.org/sbt-native-packager/formats/docker.html#busybox-ash-support" rel="nofollow noreferrer">sbt-native-packager docs</a>, I added </p>
  
  <pre><code>enablePlugins(AshScriptPlugin)
  dockerBaseImage := "openjdk:8-jre-alpine"
  </code></pre>
  
  <p>to my <code>build.sbt</code> file. When I try to run this container, I get the following errors:</p>
  
  <pre><code>bin/foo-service: line 51: /opt/docker/lib/foo-service.foo-service-1.0.40-launcher.jar: Permission denied
  bin/foo-service: line 56: is_cygwin: not found
  Unrecognized option: -J-Xms512M
  Error: Could not create the Java Virtual Machine.
  Error: A fatal exception has occurred. Program will exit.
  </code></pre>