Skip to content

Commit

Permalink
refactor(all): clean Dockerfile & clean build.sbt & remove .env
Browse files Browse the repository at this point in the history
… example
  • Loading branch information
sobakavosne committed Nov 5, 2024
1 parent f8f2fff commit 2b5ad97
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ RUN echo '#!/bin/sh\nexec java -jar /usr/local/bin/sbt-launch.jar "$@"' > /usr/l

COPY project/build.properties project/build.properties

COPY build.sbt .

COPY project/ project/

COPY build.sbt .

RUN sbt update

COPY src/ ./src/
Expand Down
10 changes: 4 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ ThisBuild / organizationName := "chemist.flow"
Compile / mainClass := Some("app.Main")
Compile / scalaSource := baseDirectory.value / "src" / "main" / "scala"

enablePlugins(DockerPlugin)
enablePlugins(JavaAppPackaging)
dockerExposedPorts ++= Seq(8081)
Docker / packageName := "chemist-flow"
// dockerEnvVars ++= Map(("CHEMIST_FLOW_HOST", "localhost"), ("CHEMIST_FLOW_PORT", "8081"))
// dockerExposedVolumes := Seq("/opt/docker/.logs", "/opt/docker/.keys")
enablePlugins(DockerPlugin, JavaAppPackaging)

Docker / packageName := "chemist-flow"
Docker / dockerExposedPorts := Seq(8081)

Test / scalaSource := baseDirectory.value / "src" / "test" / "scala"

Expand Down
2 changes: 0 additions & 2 deletions examples/.env.example

This file was deleted.

0 comments on commit 2b5ad97

Please sign in to comment.