mirror of
https://github.com/bitnami/containers.git
synced 2026-03-06 15:09:19 +08:00
11.0.2-debian-9-r0 release
This commit is contained in:
19
bitnami/java/11/debian-9/Dockerfile
Normal file
19
bitnami/java/11/debian-9/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM bitnami/minideb:stretch
|
||||
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
||||
|
||||
# Install required system packages and dependencies
|
||||
RUN install_packages ca-certificates libc6 libsqlite3-dev libssl-dev libssl1.0.2 wget zlib1g
|
||||
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/java-11.0.2-0-linux-amd64-debian-9.tar.gz && \
|
||||
echo "fff3529c1632195d59186f79af9f2beb7e1422f821c535ea392d31be7e5cc7d7 /tmp/bitnami/pkg/cache/java-11.0.2-0-linux-amd64-debian-9.tar.gz" | sha256sum -c - && \
|
||||
tar -zxf /tmp/bitnami/pkg/cache/java-11.0.2-0-linux-amd64-debian-9.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
||||
rm -rf /tmp/bitnami/pkg/cache/java-11.0.2-0-linux-amd64-debian-9.tar.gz
|
||||
RUN sed -i 's/^PASS_MAX_DAYS.*/PASS_MAX_DAYS 90/' /etc/login.defs && \
|
||||
sed -i 's/^PASS_MIN_DAYS.*/PASS_MIN_DAYS 0/' /etc/login.defs && \
|
||||
sed -i 's/sha512/sha512 minlen=8/' /etc/pam.d/common-password
|
||||
|
||||
ENV BITNAMI_APP_NAME="java" \
|
||||
BITNAMI_IMAGE_VERSION="11.0.2-debian-9-r0" \
|
||||
JAVA_HOME="/opt/bitnami/java" \
|
||||
PATH="/opt/bitnami/java/bin:$PATH"
|
||||
|
||||
CMD [ "bash" ]
|
||||
11
bitnami/java/11/debian-9/docker-compose.yml
Normal file
11
bitnami/java/11/debian-9/docker-compose.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
java:
|
||||
tty: true # Enables debugging capabilities when attached to this container.
|
||||
image: 'bitnami/java:11'
|
||||
command: ["tail", "-f", "/dev/null"] # To keep the container running
|
||||
ports:
|
||||
- 8080:8080
|
||||
volumes:
|
||||
- .:/app
|
||||
Reference in New Issue
Block a user