-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e8cffeb
commit e86b13f
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM python:3.11.6-slim-bookworm | ||
|
||
WORKDIR /usr/local/app | ||
|
||
COPY ./requirements.txt /usr/local/app/requirements.txt | ||
RUN pip install --no-cache-dir --upgrade pip | ||
RUN pip install --no-cache-dir -r /usr/local/app/requirements.txt | ||
|
||
# Polars requires AVX2 CPU instructions, which are not available on the server | ||
RUN pip uninstall -y polars | ||
RUN pip install --no-cache-dir polars-lts-cpu | ||
|
||
COPY ./src /usr/local/app/src | ||
|
||
ENV ENFOBENCH_MODEL_SEASONALITY="1D" | ||
|
||
EXPOSE 3000 | ||
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "3000"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
enfobench>=0.3.5,<0.4.0 | ||
statsforecast==1.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters