forked from evryfs/base-java-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
13 lines (13 loc) · 696 Bytes
/
Dockerfile
File metadata and controls
13 lines (13 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM quay.io/evryfs/base-java:master-20221209
LABEL maintainer "David J. M. Karlsen <david@davidkarlsen.com>"
ENV DEFAULT_JAVA_OPTIONS="-XX:+HeapDumpOnOutOfMemoryError -XX:InitialRAMPercentage=50.0 -XX:MinRAMPercentage=50.0 -XX:MaxRAMPercentage=75.0 -server -XshowSettings:vm -XX:HeapDumpPath=/tmp"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update && \
apt-get -y --no-install-recommends install gosu && \
apt-get clean && \
useradd -c "application user" -d /app -s /bin/bash -m app -u 99 --system && \
chmod o+rx /app && \
rm -rf /var/cache/apt /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY entrypoint.sh /
WORKDIR /app
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]