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
|
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
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,9 @@ 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
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user