1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/presto-server/Dockerfile

25 lines
514 B
Docker
Raw Normal View History

2018-08-21 11:02:50 +02:00
#
2018-08-21 12:06:54 +02:00
# Dockerfile for presto-server
2018-08-21 11:02:50 +02:00
#
FROM java:8-jre-alpine
MAINTAINER kev <noreply@easypi.pro>
ENV PRESTO_VERSION 0.208
ENV PRESTO_URL https://repo1.maven.org/maven2/com/facebook/presto/presto-server/$PRESTO_VERSION/presto-server-$PRESTO_VERSION.tar.gz
2018-08-21 12:06:54 +02:00
ENV PRESTO_HOME /opt/presto-server
2018-08-21 11:02:50 +02:00
WORKDIR $PRESTO_HOME
RUN set -xe \
2018-08-21 12:03:35 +02:00
&& apk add --no-cache curl python tar \
2018-08-21 11:02:50 +02:00
&& curl -sSL $PRESTO_URL | tar xz --strip 1 \
&& apk del curl tar
2018-08-21 12:06:54 +02:00
VOLUME /data
2018-08-21 11:02:50 +02:00
2018-08-21 12:03:35 +02:00
EXPOSE 8080
2018-08-21 11:02:50 +02:00
ENTRYPOINT ["./bin/launcher"]
CMD ["run"]