-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
47 lines (41 loc) · 1.26 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
43
44
45
46
47
FROM openjdk:11.0.12
LABEL maintainer=“[email protected]”
ARG APPLICATION_PORT=8080
ARG CORE_OWL_URL
ARG DATA_BASE_URL
ARG DATA_URL
ARG DEFAULT_LIMIT=25
ARG INF_CACHE_URL
ARG KEYCLOAK_RDF_ID_ATTRIBUTE
ARG KEYCLOAK_REALM
ARG KEYCLOAK_RESOURCE
ARG KEYCLOAK_URL
ARG LOGGING_LEVEL
ARG OTHER_OWL_URLS
ARG PROFILE
ARG REDIS_PORT
ARG REDIS_URL
ENV APPLICATION_PORT=${APPLICATION_PORT}
ENV CORE_OWL_URL=${CORE_OWL_URL}
ENV DATA_BASE_URL=${DATA_BASE_URL}
ENV DATA_URL=${DATA_URL}
ENV DEFAULT_LIMIT=${DEFAULT_LIMIT}
ENV INF_CACHE_URL=${INF_CACHE_URL}
ENV KEYCLOAK_RDF_ID_ATTRIBUTE=${KEYCLOAK_RDF_ID_ATTRIBUTE}
ENV KEYCLOAK_REALM=${KEYCLOAK_REALM}
ENV KEYCLOAK_RESOURCE=${KEYCLOAK_RESOURCE}
ENV KEYCLOAK_URL=${KEYCLOAK_URL}
ENV LOGGING_LEVEL=${LOGGING_LEVEL}
ENV OTHER_OWL_URLS=${OTHER_OWL_URLS}
ENV PROFILE=${PROFILE}
ENV REDIS_PORT=${REDIS_PORT}
ENV REDIS_URL=${REDIS_URL}
RUN curl -fsSL https://deb.nodesource.com/setup_17.x | bash -
RUN apt-get install -y nodejs
RUN npm install -g yarn
RUN cd /opt && curl -sSl http://mirror.vorboss.net/apache/maven/maven-3/3.8.3/binaries/apache-maven-3.8.3-bin.tar.gz | tar -xz
ENV PATH "$PATH:/opt/apache-maven-3.8.3/bin"
EXPOSE ${APPLICATION_PORT}
COPY ./ ./
RUN mvn package -Dmaven.test.skip=true
ENTRYPOINT ["java","-jar","./target/nampi-backend.jar"]