-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
47 lines (34 loc) · 1011 Bytes
/
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
# Copyright (C) 2023 LinkedData.Center - All Rights Reserved
FROM ubuntu:24.04
LABEL authors="enrico@linkeddata.center"
RUN apt-get update && \
apt-get install -y --no-install-recommends \
curl \
gettext-base \
ca-certificates \
raptor2-utils \
jq \
csvtool \
libxml2-utils
###### Mandatory configuration variables
ENV SDAAS_INSTALL_DIR=/opt/sdaas
ENV SDAAS_ETC="/etc/sdaas"
ENV SDAAS_REFERENCE_DOC="https://linkeddata.center/sdaas"
ENV SDAAS_VERSION="4.2"
ENV SDAAS_APPLICATION_ID="Community Edition"
COPY modules "$SDAAS_INSTALL_DIR"
COPY bin/sdaas /usr/bin/sdaas
COPY etc/sdaas "${SDAAS_ETC}"
RUN chmod -R 0755 /usr/bin/sdaas
# Create an user and a workspace
ENV SDAAS_WORKSPACE=/workspace
RUN useradd -m -d "${SDAAS_WORKSPACE}/" -s /bin/bash -g users -u 1001 sdaas
ARG MODE=test
RUN if [ "$MODE" = "test" ]; then \
apt-get install -y bats; \
fi
USER sdaas
WORKDIR "${SDAAS_WORKSPACE}"
## Variables affecting program execution
ENV SD_LOG_PRIORITY=7
ENTRYPOINT ["/usr/bin/sdaas"]