1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-27 09:18:43 +00:00
dockerfiles/prestosql/Dockerfile.debian

31 lines
838 B
Docker
Raw Normal View History

2019-10-20 03:31:17 +00:00
#
2019-10-21 14:02:39 +00:00
# Dockerfile for prestosql
2019-10-20 03:31:17 +00:00
#
2020-08-14 03:26:15 +00:00
FROM openjdk:11-jdk-slim-buster
2020-08-12 08:05:06 +00:00
MAINTAINER EasyPi Software Foundation
2019-10-20 03:31:17 +00:00
2020-08-12 08:05:06 +00:00
ENV PRESTO_VERSION=340
2019-10-20 03:31:17 +00:00
ENV PRESTO_SERVER_URL=https://repo1.maven.org/maven2/io/prestosql/presto-server/${PRESTO_VERSION}/presto-server-${PRESTO_VERSION}.tar.gz
ENV PRESTO_CLI_URL=https://repo1.maven.org/maven2/io/prestosql/presto-cli/${PRESTO_VERSION}/presto-cli-${PRESTO_VERSION}-executable.jar
ENV PRESTO_HOME=/opt/presto
ENV PATH=${PRESTO_HOME}/bin:${PATH}
WORKDIR $PRESTO_HOME
RUN set -xe \
&& apt-get update \
&& apt-get install -y curl less python \
&& curl -sSL $PRESTO_SERVER_URL | tar xz --strip 1 \
&& curl -sSL $PRESTO_CLI_URL > ./bin/presto \
&& chmod +x ./bin/presto \
&& apt-get remove -y curl \
&& rm -rf /var/lib/apt/lists/*
VOLUME /data
EXPOSE 8080
ENTRYPOINT ["launcher"]
CMD ["run"]