Skip to content

Commit 3b08ec9

Browse files
committed
New dockerfile and small fixes
1 parent a0a732d commit 3b08ec9

2 files changed

Lines changed: 9 additions & 27 deletions

File tree

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
FROM node:24-slim as builder
1+
FROM nikolaik/python-nodejs:latest
22

33
WORKDIR /app
4+
RUN apt-get update && apt-get install -y procps
5+
COPY requirements.txt requirements.txt
6+
RUN pip3 install -r requirements.txt
7+
48
COPY . .
59
WORKDIR /app/static
610
RUN npm init -y && npm install
711

8-
FROM python:3.12-slim
912
WORKDIR /app
10-
RUN apt-get update && apt-get install -y procps
11-
COPY requirements.txt requirements.txt
12-
RUN pip3 install -r requirements.txt
13-
COPY --from=builder /app /app
1413
CMD [ "python3", "app.py", "-w" ]

templates/index.html

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -40,33 +40,17 @@ <h5 class="modal-title" id="uploadFileLabel">Upload turtle file</h5>
4040
</div>
4141
</div>
4242
<div class="alert alert-info" role="alert">
43-
<h4 class="alert-heading">Hello {{user['username']}}, welcome to the N4O-KG workshop!
44-
<a href="/logout">Log out</a>
43+
<h4 class="alert-heading">
44+
Hello {{user['username']}}, welcome to the N4O-KG workshop. Your collection index is "{{ user['index'] }}".&nbsp;&nbsp; <a href="/logout">Log out</a>
4545
</h4>
46-
<hr>
47-
<div class="mb-3">
48-
49-
</div>
50-
{% if error %}
51-
<div class="mb-3">
52-
<label for="ETA1" class="form-label">Error:</label>
53-
<textarea class="form-control" id="ETA1" rows="5" readonly>{{ error }}</textarea>
54-
</div>
55-
{% endif %}
56-
57-
{% if success %}
58-
<div class="mb-3">
59-
<label for="RTA1" class="form-label">Result:</label>
60-
<textarea class="form-control" id="RTA1" rows="5" readonly>{{ success }}</textarea>
61-
</div>
62-
{% endif %}
6346
</div>
6447
<div id="app" class=".container-fluid" user_data="{{ user['profile_data'] }}" coll_index="{{ user['index'] }}">
48+
6549
<div class="row">
6650
<div class="col">
6751
<h4>Lido source (xml)</h4>
6852
<p>
69-
<button type="button" class="btn btn-primary btn-sm" onclick="reset_editors()" id="REB">Reset</button>&nbsp;
53+
<button type="button" class="btn btn-primary btn-sm" onclick="reset_editors()" id="REB">Reset</button>
7054
<button type="button" class="btn btn-danger btn-sm" onclick="convert_lido()" id="CLB">Convert</button>
7155
<div class="spinner-border text-primary" role="status" id="SP1"></div>
7256
</p>
@@ -78,7 +62,6 @@ <h4>RDF Output (ttl)</h4>
7862
<button type="button" class="btn btn-danger btn-sm" onclick="import_ttl()" id="ITB">Import</button>
7963
<button type="button" class="btn btn-primary btn-sm" onclick="rdfEditor.setValue('')" id="ITB">Clear</button>
8064
<button type="button" class="btn btn-primary btn-sm" data-bs-toggle="modal" data-bs-target="#uploadFile">Upload file</button>
81-
The collection index is "{{ user['index'] }}"&nbsp;
8265
</p>
8366
<div id="rdfEditor" style="height:600px"></div>
8467
</div>

0 commit comments

Comments
 (0)