Skip to content

Commit 1bac19f

Browse files
authored
Merge pull request #118 from data-apis/add-prophet
PR: Add prophet
2 parents 61e4179 + 5a39128 commit 1bac19f

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

k8/images/prophet/Dockerfile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# syntax = docker/dockerfile:1.1.7-experimental
2+
ARG FROM
3+
FROM ${FROM}
4+
5+
WORKDIR /usr/src/app
6+
7+
# Must build from source to be able to run tests
8+
# https://github.com/facebook/prophet
9+
RUN git clone \
10+
--branch 0.6 \
11+
--depth 1 \
12+
https://github.com/facebook/prophet.git \
13+
.
14+
15+
RUN --mount=type=cache,target=/root/.cache/pip \
16+
pip install -r python/requirements.txt
17+
18+
RUN --mount=type=cache,target=/root/.cache/pip \
19+
pip install \
20+
pytest \
21+
numpy \
22+
pandas \
23+
convertdate \
24+
pytest-custom_exit_code
25+
26+
RUN --mount=type=cache,target=/root/.cache/pip \
27+
pip install -e python/
28+
29+
RUN cd python \
30+
python -c "from fbprophet import Prophet"
31+
32+
ENV PYTHON_RECORD_API_FROM_MODULES=fbprophet
33+
CMD ["pytest", "python/fbprophet", "--verbose", "--suppress-tests-failed-exit-code"]

k8/images/prophet/version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.3.5

0 commit comments

Comments
 (0)