Skip to content
This repository was archived by the owner on Jul 26, 2022. It is now read-only.

Commit cf4c256

Browse files
committed
update-versions, use base alpine
1 parent 092591a commit cf4c256

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
# -- build
12
FROM openjdk:8-jdk-slim AS builder
23
COPY ./ /src/
34
WORKDIR /src/
45
RUN ./gradlew --info --no-daemon build
56

6-
FROM quay.io/pires/docker-jre:8u191
7+
# -- run
8+
FROM alpine:3.10
79

10+
# Install java runtime
11+
RUN apk add --no-cache --update openjdk8-jre && \
12+
rm -rf /tmp/* /var/cache/apk/*
13+
14+
ENV JAVA_HOME=/usr/lib/jvm/default-jvm/jre
815
ENV ALLOWED_USER_AGENTS_ON_ROOT_REGEX "GoogleHC"
916
ENV AUTH_CACHE_TTL "300"
1017
ENV BIND_PORT "8080"

0 commit comments

Comments
 (0)