Private
Public Access
fix: el docker no creaba imagenes nuevas
This commit is contained in:
1 parent
e9cfb1adba
commit
de33352618
3 files changed
+15
-5
No files matched your search
+9
-1
@@ -1,8 +1,16 @@
|
||||
FROM sbtscala/scala-sbt:amazoncorretto-al2023-21.0.12_1.12.14_2.13.18 AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN sbt assembly
|
||||
|
||||
FROM eclipse-temurin:21-jre
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY target/scala-2.13/*assembly*.jar app.jar
|
||||
COPY --from=builder /app/target/scala-2.13/*assembly*.jar app.jar
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
|
||||
@@ -7,8 +7,9 @@ object EnvFile {
|
||||
|
||||
def load(path: String): Map[String, String] = {
|
||||
val file = new File(path)
|
||||
if (!file.exists()) Map.empty
|
||||
else {
|
||||
if (!file.exists()) {
|
||||
sys.env
|
||||
} else {
|
||||
val lines = Source.fromFile(file).getLines().toList
|
||||
lines.flatMap(parseLine).toMap
|
||||
}
|
||||
|
||||
+3
-2
@@ -6,6 +6,7 @@ services:
|
||||
depends_on:
|
||||
- svelte
|
||||
- go-api
|
||||
- comms
|
||||
restart: on-failure
|
||||
networks:
|
||||
- app-network
|
||||
@@ -45,8 +46,8 @@ services:
|
||||
- "8088:8088"
|
||||
env_file:
|
||||
- ./comms/.env
|
||||
depends_on:
|
||||
- go-api
|
||||
# depends_on:
|
||||
# - go-api
|
||||
restart: on-failure
|
||||
networks:
|
||||
- app-network
|
||||
|
||||
Reference in new issue
Block a user