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

Commit

Permalink
update-versions, use base alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoroianu1 committed Jul 26, 2019
1 parent 092591a commit cf4c256
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# -- build
FROM openjdk:8-jdk-slim AS builder
COPY ./ /src/
WORKDIR /src/
RUN ./gradlew --info --no-daemon build

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

# Install java runtime
RUN apk add --no-cache --update openjdk8-jre && \
rm -rf /tmp/* /var/cache/apk/*

ENV JAVA_HOME=/usr/lib/jvm/default-jvm/jre
ENV ALLOWED_USER_AGENTS_ON_ROOT_REGEX "GoogleHC"
ENV AUTH_CACHE_TTL "300"
ENV BIND_PORT "8080"
Expand Down

0 comments on commit cf4c256

Please sign in to comment.