Skip to content

Commit

Permalink
[fix] adding required packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dr4hcu5-jan committed Apr 10, 2024
1 parent 6324330 commit 3e03a62
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 3e03a62

Please sign in to comment.