Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
FROM hseeberger/scala-sbt:eclipse-temurin-11.0.14.1_1.6.2_2.13.8 as build
FROM hseeberger/scala-sbt:eclipse-temurin-11.0.14.1_1.6.2_2.13.8 AS build

WORKDIR /app

# Copy project definition first for caching
COPY project ./project
COPY build.sbt ./

# Copy the rest of the source code
COPY . .

RUN sbt update compile stage
RUN chmod a+rx /app/target/universal/stage/bin/*

FROM openjdk:11-jre-slim
FROM eclipse-temurin:11-jre-jammy

WORKDIR /app

Expand Down
3 changes: 1 addition & 2 deletions src/main/scala/http/HttpClient.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ class HttpClient {
.withHeaders(
Header.Raw(CIString("Accept"), "application/json"),
Header.Raw(CIString("Content-Type"), "application/json"),
Header.Raw(CIString("User-Agent"), "watchlistarr/1.0"),
Header.Raw(CIString("Host"), host)
Header.Raw(CIString("User-Agent"), "watchlistarr/1.0")
)
val requestWithApiKey = apiKey.fold(baseRequest)(key =>
baseRequest.withHeaders(
Expand Down