2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-24 14:31:51 +01:00
Files
dockerfiles_vimagick/presto/Dockerfile
2018-08-21 18:03:35 +08:00

25 lines
511 B
Docker

#
# Dockerfile for presto
#
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
ENV PRESTO_HOME /opt/presto
WORKDIR $PRESTO_HOME
RUN set -xe \
&& apk add --no-cache curl python tar \
&& curl -sSL $PRESTO_URL | tar xz --strip 1 \
&& apk del curl tar
VOLUME /var/presto/data
EXPOSE 8080
ENTRYPOINT ["./bin/launcher"]
CMD ["run"]