1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 17:51:24 +00:00
dockerfiles/presto-server/Dockerfile

25 lines
514 B
Docker
Raw Normal View History

2018-08-21 09:02:50 +00:00
#
2018-08-21 10:06:54 +00:00
# Dockerfile for presto-server
2018-08-21 09:02:50 +00:00
#
FROM java:8-jre-alpine
MAINTAINER kev <noreply@easypi.pro>
2019-02-25 06:26:30 +00:00
ENV PRESTO_VERSION 0.217
2018-08-21 09:02:50 +00: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 10:06:54 +00:00
ENV PRESTO_HOME /opt/presto-server
2018-08-21 09:02:50 +00:00
WORKDIR $PRESTO_HOME
RUN set -xe \
2018-08-21 10:03:35 +00:00
&& apk add --no-cache curl python tar \
2018-08-21 09:02:50 +00:00
&& curl -sSL $PRESTO_URL | tar xz --strip 1 \
&& apk del curl tar
2018-08-21 10:06:54 +00:00
VOLUME /data
2018-08-21 09:02:50 +00:00
2018-08-21 10:03:35 +00:00
EXPOSE 8080
2018-08-21 09:02:50 +00:00
ENTRYPOINT ["./bin/launcher"]
CMD ["run"]