-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
62 lines (47 loc) · 1.47 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#
# Agate Dockerfile
#
# https://github.com/obiba/docker-agate
#
FROM docker.io/library/eclipse-temurin:21-jre-noble AS server-released
LABEL OBiBa <[email protected]>
ENV LANG C.UTF-8
ENV LANGUAGE C.UTF-8
ENV LC_ALL C.UTF-8
ENV AGATE_ADMINISTRATOR_PASSWORD=password
ENV AGATE_HOME=/srv
ENV JAVA_OPTS=-Xmx2G
ENV AGATE_VERSION 3.2.0
# Install Agate Python Client
RUN \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y gosu apt-transport-https unzip curl python3-pip libcurl4-openssl-dev libssl-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN pip install --break-system-packages obiba-agate
# Install Agate Server
RUN set -x && \
cd /usr/share/ && \
wget -q -O agate.zip https://github.com/obiba/agate/releases/download/${AGATE_VERSION}/agate-${AGATE_VERSION}-dist.zip && \
unzip -q agate.zip && \
rm agate.zip && \
mv agate-${AGATE_VERSION} agate
RUN chmod +x /usr/share/agate/bin/agate
COPY ./bin /opt/agate/bin
RUN groupadd --system --gid 10041 agate && \
useradd --system --home $AGATE_HOME --no-create-home --uid 10041 --gid agate agate; \
chmod +x -R /opt/agate/bin && \
chown -R agate /opt/agate
# Clean up
RUN apt remove -y unzip wget && \
apt autoremove -y && \
apt clean && \
rm -rf /var/lib/apt/lists/* /tmp/*
VOLUME /srv
# http and https
EXPOSE 8081 8444
# Define default command.
COPY ./docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["app"]