Skip to content

Commit

Permalink
[UPDATE] Updated Docker & requirements.txt (#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
akmalsoliev authored Oct 23, 2023
1 parent 0e25b61 commit 03bcafc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@ CURR_DIR := $(CURDIR)

START_COMMAND := jupyter-lab --allow-root
JUPYTER_LIST := jupyter-lab list
PIPINSTALLE := pip install -e .

build: # Command to build Docker file [optional]
@docker build -t statsforecast -f dev/Dockerfile .

run: build # Run jupyter notebook using Docker image
@docker run --name statsforecast --rm -d --network host -v $(CURR_DIR):/workdir/ statsforecast $(START_COMMAND)
@docker exec statsforecast $(PIPINSTALLE)

buildless: # Run jupyter notebook using Docker image without building the image
@docker run --name statsforecast --rm -d --network host -v $(CURR_DIR):/workdir/ statsforecast $(START_COMMAND)
@docker exec statsforecast $(PIPINSTALLE)

address: # Show the ipaddress and port of Jupyter Notebook
@docker exec statsforecast $(JUPYTER_LIST)
Expand Down
6 changes: 3 additions & 3 deletions dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM python:3.10
FROM python:3.11

COPY dev/requirements.txt setup/

RUN pip install -r setup/requirements.txt
RUN pip install --upgrade pip && pip install -r setup/requirements.txt

# Settuping the working environment.
# Setting the working environment.
# This will server as an empty directory where all the files be dropped to.
WORKDIR /workdir/
4 changes: 3 additions & 1 deletion dev/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ numba>=0.55.0
numpy>=1.21.6
pandas>=1.3.5
pyspark>=3.3
pip
prophet
pyarrow
scipy>=1.7.3
Expand All @@ -19,3 +18,6 @@ plotly-resampler
polars
supersmoother
tqdm
black
mypy
types-setuptools

0 comments on commit 03bcafc

Please sign in to comment.