forked from CodeforLeipzig/lvz-viz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.dev
26 lines (17 loc) · 877 Bytes
/
Dockerfile.dev
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
FROM eclipse-temurin:17-jre-alpine
LABEL maintainer="Sebastian Peters <Sebastian.Peters@gmail.com>" \
org.opencontainers.image.authors="Sebastian Peters <Sebastian.Peters@gmail.com>" \
org.opencontainers.image.source="https://github.com/CodeforLeipzig/lvz-viz" \
org.opencontainers.image.vendor="Open Knowledge Foundation Deutschland e.V."
# see https://github.com/adoptium/containers/blob/main/17/jdk/alpine/Dockerfile.releases.full#L26
ENV LANG='de_DE.UTF-8' LANGUAGE='de_DE:de' LC_ALL='de_DE.UTF-8'
RUN echo "Europe/Berlin" > /etc/timezone
ENV USER lvz-viz
RUN addgroup ${USER} \
&& adduser -D -G ${USER} -S ${USER}
USER ${USER}
WORKDIR /home/${USER}
COPY --chown=${USER} dewac_175m_600.crf.ser.gz .
COPY --chown=${USER} build/libs/*.jar ./app.jar
EXPOSE 8080
ENTRYPOINT ["java","-XshowSettings:vm","-XX:MaxRAMPercentage=95","-jar","./app.jar"]