fix: el docker no creaba imagenes nuevas

This commit is contained in:
fede committed 2026-08-05 23:15:27 -03:00
1 parent e9cfb1adba
commit de33352618
3 files changed
+17 -7

No files matched your search

+9 -1
View File
@@ -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 FROM eclipse-temurin:21-jre
WORKDIR /app 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 EXPOSE 8080
@@ -5,14 +5,15 @@ import scala.io.Source
object EnvFile { object EnvFile {
def load(path: String): Map[String, String] = { def load(path: String): Map[String, String] = {
val file = new File(path) val file = new File(path)
if (!file.exists()) Map.empty if (!file.exists()) {
else { sys.env
} else {
val lines = Source.fromFile(file).getLines().toList val lines = Source.fromFile(file).getLines().toList
lines.flatMap(parseLine).toMap lines.flatMap(parseLine).toMap
} }
} }
private def parseLine(line: String): Option[(String, String)] = { private def parseLine(line: String): Option[(String, String)] = {
val trimmed = line.trim val trimmed = line.trim
+3 -2
View File
@@ -6,6 +6,7 @@ services:
depends_on: depends_on:
- svelte - svelte
- go-api - go-api
- comms
restart: on-failure restart: on-failure
networks: networks:
- app-network - app-network
@@ -45,8 +46,8 @@ services:
- "8088:8088" - "8088:8088"
env_file: env_file:
- ./comms/.env - ./comms/.env
depends_on: # depends_on:
- go-api # - go-api
restart: on-failure restart: on-failure
networks: networks:
- app-network - app-network