File tree Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -167,11 +167,6 @@ The following command generates a `hello-docker` image with the `latest` tag:
167167scala-cli --power package --docker HelloDocker.scala --docker-image-repository hello-docker
168168```
169169
170- <!-- Expected:
171- Started building docker image with your application
172- docker run hello-docker:latest
173- -->
174-
175170<ChainedSnippets >
176171
177172``` bash ignore
@@ -184,20 +179,12 @@ Hello from Docker
184179
185180</ChainedSnippets >
186181
187- <!-- Expected:
188- Hello from Docker
189- -->
190-
191182You can also create Docker images for Scala.js and Scala Native applications.
192183The following command shows how to create a Docker image (` --docker ` ) for a Scala.js (` --js ` ) application:
193184
194185``` bash ignore
195186scala-cli --power package --js --docker HelloDocker.scala --docker-image-repository hello-docker
196187```
197- <!-- Expected:
198- Started building docker image with your application
199- docker run hello-docker:latest
200- -->
201188
202189Packaging Scala Native applications to a Docker image is only supported on Linux.
203190
Original file line number Diff line number Diff line change @@ -21,30 +21,17 @@ The following command generates a `hello-docker` image with the `latest` tag:
2121scala-cli --power package --docker HelloDocker.scala --docker-image-repository hello-docker
2222```
2323
24- <!-- Expected:
25- Started building docker image with your application
26- docker run hello-docker:latest
27- -->
28-
2924``` bash ignore
3025docker run hello-docker
3126# Hello from Docker
3227```
3328
34- <!-- Expected:
35- Hello from Docker
36- -->
37-
3829You can also package your app in the Scala.js or Scala Native environments.
3930For example, this command creates a Scala.js Docker image:
4031
4132``` bash ignore
4233scala-cli --power package --js --docker HelloDocker.scala --docker-image-repository hello-docker
4334```
44- <!-- Expected:
45- Started building docker image with your application
46- docker run hello-docker:latest
47- -->
4835
4936This command creates a Scala Native Docker image:
5037
You can’t perform that action at this time.
0 commit comments