-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
42 lines (35 loc) · 1.11 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# This image should contain a Corese server in sudo mode and the IndeGx application
# The default.json and the RDF files in the "input folder" should be used as catalogs by IndeGx and the resulting indexes should be saved in the "output" catalog
FROM ubuntu
ENV LANG C.UTF-8
RUN set -eux; \
apt-get update; \
apt-get install -f -y --no-install-recommends \
bash sudo curl software-properties-common ca-certificates findutils coreutils gettext pwgen procps tini wget \
;
RUN curl -fsSL https://deb.nodesource.com/setup_21.x | sudo -E bash - &&\
apt-get install -f -y nodejs
RUN apt-get install -y aptitude
RUN aptitude install -y npm
RUN npm install npm@latest -g && \
npm install n -g && \
n latest
WORKDIR /indegx
COPY indegx/package.json package.json
RUN npm install
WORKDIR /
COPY . /
# Volume containing the catalogs
WORKDIR /input
VOLUME ["/input"]
#Volume containing the resulting indexes
WORKDIR /output
VOLUME ["/output"]
# Colume containing the configuration file
VOLUME ["/config"]
WORKDIR /indegx
RUN npm install
RUN npm run build
WORKDIR /
RUN chmod +x dockerStart.sh
CMD ./dockerStart.sh