summaryrefslogtreecommitdiffstats
path: root/packages/docker/src/main/docker/docker-files/Dockerfile.so-base-image
blob: 0bc4abad136871bd99672202f0d47bed5f3a3807 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM adoptopenjdk/openjdk11:jre-11.0.8_10-alpine

ARG http_proxy
ARG https_proxy
ENV HTTP_PROXY=$http_proxy
ENV HTTPS_PROXY=$https_proxy
ENV http_proxy=$HTTP_PROXY
ENV https_proxy=$HTTPS_PROXY

# Install commonly needed tools
RUN apk --no-cache add curl netcat-openbsd nss apache2-utils java-cacerts

# Create symlink for default Java truststore
RUN set -eux; \
    rm -rf "$JAVA_HOME/lib/security/cacerts"; \
    ln -sT /etc/ssl/certs/java/cacerts "$JAVA_HOME/lib/security/cacerts"

# Create 'so' user
RUN addgroup -g 1000 so && adduser -S -u 1000 -G so -s /bin/sh so