fling/container/Dockerfile

29 lines
1.1 KiB
Docker
Raw Permalink Normal View History

2020-06-20 14:48:32 +00:00
FROM alpine:latest
2020-06-11 20:00:20 +00:00
2020-07-12 09:46:47 +00:00
ARG VERSION
2020-07-28 22:34:28 +00:00
ENV FLING_API_BASE http://localhost:3000
ENV FLING_LOG_LEVEL warn
ENV FLING_FILESIZE 209715200
RUN apk add --update --no-cache nginx openjdk11-jre gettext && \
2020-06-12 13:31:42 +00:00
mkdir -p /var/fling/files && \
mkdir -p /tmp/fling && \
2020-07-12 09:46:47 +00:00
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=$(echo -n $VERSION | tr [:lower:] [:upper:])&maven.extension=jar" && \
wget -O /tmp/fling/web.tar.gz "https://nexus.friedl.net/repository/build-artifacts/fling-web-$(echo -n $VERSION | tr [:upper:] [:lower:]).tar.gz" && \
2020-06-12 13:31:42 +00:00
tar xzf /tmp/fling/web.tar.gz -C /tmp/fling && \
ls -al /tmp/fling && \
mkdir -p /var/www/fling && mv /tmp/fling/build/* /var/www/fling && \
mkdir -p /var/fling && mkdir -p /var/fling/files && \
mv /tmp/fling/service.jar ./service.jar
2020-06-11 20:00:20 +00:00
COPY ./etc/nginx/conf.d /etc/nginx/conf.d
2020-07-28 22:34:28 +00:00
COPY ./var/www/fling/config.js.template /var/www/fling/config.js.template
COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh
2020-06-12 13:31:42 +00:00
VOLUME /var/fling/
EXPOSE 3000
2020-06-11 20:00:20 +00:00
2020-06-12 13:31:42 +00:00
ENTRYPOINT ["entrypoint.sh"]