How to deploy Scala project by docker #11575
Unanswered
Liu-Eric-Yu
asked this question in
Q&A
Replies: 2 comments
-
|
https://www.scala-sbt.org/sbt-native-packager/formats/docker.html |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Maybe my Dockerfile can be of use to you, too: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem I meet
I want to deploy my Scala project into docker.
When I dist project with my MacBook(M2) by sbt , and it successfuly disted.
And then I try to run it on my MacBook , It successed.
But I delpoy it to docker and try to run it. but it was pending with nothing to log.
I don`t know where the problem is and how to resolve it.
My Local env
Play Version
play:2.8.18
API
scalaVersion : "2.13.10"
sbt
sbt.version: 1.8.0
Operating System
MacBook Pro(13Inch , M2,2022)
JDK
java version "11.0.17" 2022-10-18 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.17+10-LTS-269)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.17+10-LTS-269, mixed mode)
Docker env
The docker env what I need was like this.
brew install colimabrew install dockercolima start --memory 4 --arch x86_64docker run ...DockerFile
What I need
Can You tell me , When I deploy Scala project to docker. What is the docker necessary Configuration.
Could you please give me some guidance。Thanks very much.
Beta Was this translation helpful? Give feedback.
All reactions