Skip to content

Commit cf053e2

Browse files
committed
dockerfile updates
1 parent d98f7ec commit cf053e2

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

Dockerfile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.11
1+
FROM python:3.9
22

33
WORKDIR /app
44

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

2424
# Install python dependencies
25-
RUN pip install --upgrade pip setuptools wheel
26-
RUN pip install --no-deps \
27-
spinetoolbox==0.7.4 \
28-
spine_engine==0.23.4 \
29-
spine_items==0.21.5 \
30-
spinedb_api==0.30.5
31-
RUN pip install -r requirements.txt
25+
# RUN pip install --upgrade pip setuptools wheel
26+
# RUN pip install --no-deps \
27+
# spinetoolbox==0.7.4 \
28+
# spine_engine==0.23.4 \
29+
# spine_items==0.21.5 \
30+
# spinedb_api==0.30.5
31+
# RUN pip install -r requirements.txt
32+
RUN pip install gdx2py>=2.1.0 --verbose
3233

33-
ENTRYPOINT ["python", "src/app.py" ]
34+
# ENTRYPOINT ["python", "src/app.py" ]

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ help:
1010
build:
1111
docker compose build --no-cache
1212

13+
# target: up - Start the docker container.
14+
up:
15+
docker compose up
16+
17+
# target: down - Stop the docker container.
18+
down:
19+
docker compose down -v
20+
1321
# target: run - Run local web server.
1422
run:
1523
python src/app.py

0 commit comments

Comments
 (0)