-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
27 lines (21 loc) · 902 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
FROM eclipse-temurin:21-jre-alpine
LABEL org.opencontainers.image.authors="MEDEVIT <[email protected]>"
ARG BRANCH=master
RUN apk add --no-cache tzdata bash gcompat cups-client
ENV TZ=Europe/Zurich
ENV LANGUAGE en_US:en
ENV LANG de_CH.UTF-8
ENV LC_ALL de_CH.UTF-8
ENV ELEXIS-BRANCH=${BRANCH}
RUN addgroup --gid 1001 elexis && adduser -S -u 1001 -G elexis -g "" -h /elexis elexis && \
mkdir -p /opt/elexis-server && \
wget https://download.elexis.info/elexis-server/${BRANCH}/products/info.elexis.server.runtime.product-linux.gtk.x86_64.zip && \
unzip -d /opt/elexis-server/ info.elexis.server.runtime.product-linux.gtk.x86_64.zip && \
rm info.elexis.server.runtime.product-linux.gtk.x86_64.zip && \
chown -R elexis:elexis /opt/elexis-server /elexis
COPY releng/docker-assets/elexis-server.sh /
USER elexis
WORKDIR /elexis
EXPOSE 8380
EXPOSE 7234
CMD ["/elexis-server.sh"]