Switch container to alpine
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Armin Friedl 2020-06-20 16:48:32 +02:00
parent 3609866dae
commit 858fdd2e9c
Signed by: armin
GPG key ID: 48C726EEE7FBCBC8
2 changed files with 3 additions and 4 deletions

View file

@ -1,7 +1,6 @@
FROM debian:stable
FROM alpine:latest
RUN apt-get update -y && apt-get upgrade -y && \
apt-get install -y nginx openjdk-11-jre wget && \
RUN apk add --update --no-cache nginx openjdk11-jre && \
mkdir -p /var/fling/files && \
mkdir -p /tmp/fling && \
wget -O /tmp/fling/service.jar "https://nexus.friedl.net/service/rest/v1/search/assets/download?sort=version&maven.groupId=net.friedl&maven.artifactId=fling&maven.baseVersion=*SNAPSHOT&maven.extension=jar" && \

View file

@ -2,6 +2,6 @@
set -xe
nginx
rc-service nginx start
java ${FL_JVM_OPTS} -jar service.jar