Skip to content

Commit

Permalink
dockerfile updates
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmostafa committed Aug 15, 2024
1 parent d98f7ec commit cf053e2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11
FROM python:3.9

WORKDIR /app

Expand All @@ -22,12 +22,13 @@ RUN apt-get update && apt-get install -y \
python3-dev

# Install python dependencies
RUN pip install --upgrade pip setuptools wheel
RUN pip install --no-deps \
spinetoolbox==0.7.4 \
spine_engine==0.23.4 \
spine_items==0.21.5 \
spinedb_api==0.30.5
RUN pip install -r requirements.txt
# RUN pip install --upgrade pip setuptools wheel
# RUN pip install --no-deps \
# spinetoolbox==0.7.4 \
# spine_engine==0.23.4 \
# spine_items==0.21.5 \
# spinedb_api==0.30.5
# RUN pip install -r requirements.txt
RUN pip install gdx2py>=2.1.0 --verbose

ENTRYPOINT ["python", "src/app.py" ]
# ENTRYPOINT ["python", "src/app.py" ]
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ help:
build:
docker compose build --no-cache

# target: up - Start the docker container.
up:
docker compose up

# target: down - Stop the docker container.
down:
docker compose down -v

# target: run - Run local web server.
run:
python src/app.py

0 comments on commit cf053e2

Please sign in to comment.