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>
|
|
|
|
|
2019-02-25 08:26:30 +02:00
|
|
|
ENV PRESTO_VERSION 0.217
|
2018-08-21 11:02:50 +02:00
|
|
|
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"]
|