From 3e03a6287cd43936a6c129bb866cf51253ad5a5b Mon Sep 17 00:00:00 2001 From: Jan Eike Suchard Date: Wed, 10 Apr 2024 11:23:22 +0200 Subject: [PATCH] [fix] adding required packages --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 00fdffd..32607b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,10 +4,15 @@ WORKDIR /tmp/src RUN mkdir -p /tmp/build && go mod download & go build -v -o /tmp/build/app FROM rocker/tidyverse +USER root +RUN apt-get update && \ + apt-get install -y python3.10-full dos2unix python-is-python3 python3-pip && \ + chmod +x /algorithms -R && \ + find /algorithms -type f -print0 | xargs -0 dos2unix && \ + echo "conversion done" && \ + pip install pandas numpy scikit-learn orjson prophet COPY --from=build-http-server /tmp/build/app /usage-forecasts COPY algorithms /algorithms COPY resources/* / -USER root -RUN apt-get update && apt-get install -y python3.10-full dos2unix python-is-python3 && chmod +x /algorithms -R && find /algorithms -type f -print0 | xargs -0 dos2unix && echo "conversion done" EXPOSE 8000 ENTRYPOINT ["/usage-forecasts"] \ No newline at end of file