Skip to content

Commit 5ec6074

Browse files
committed
Cleanup Dockerfile, close #46
1 parent 6c9ef36 commit 5ec6074

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Dockerfile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
FROM nikolaik/python-nodejs:latest
1+
FROM python:3.12-slim
2+
23
WORKDIR /app
3-
COPY package.json .
4-
COPY package-lock.json .
5-
COPY install-packages.sh .
6-
RUN ./install-packages.sh
7-
RUN npm ci --omit=dev
84

95
COPY requirements.txt requirements.txt
106
RUN pip3 install -r requirements.txt
11-
ENV PATH="/app:$PATH"
12-
COPY . .
7+
8+
COPY app.py /app
9+
COPY lib/ /app/lib
10+
COPY templates/ /app/templates
11+
COPY static/ /app/static
12+
13+
EXPOSE 5020
1314

1415
ENTRYPOINT []
1516
CMD ["python", "./app.py"]

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ deps:
22
[ -d .venv ] || python3 -m venv .venv
33
.venv/bin/pip3 install -r requirements.txt
44
.venv/bin/pip3 install -r requirements-dev.txt
5-
git submodule update --init
65

76
.PHONY: test
87

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,8 @@ To also inspect the content of the triple store, use [n4o-graph-apis].
434434
The Docker image of n4o-graph-importer is automatically build on GitHub. To locally build and run the image for testing:
435435

436436
~~~sh
437-
docker compose create
438-
docker compose run -p 5020:5020 importer
437+
docker image build -t grimpo .
438+
IMPORTER_IMAGE=grimpo docker compose run --rm -p 5020:5020 importer
439439
~~~
440440

441441
*TODO: add description how to also run triple store and apis*

0 commit comments

Comments
 (0)