mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-10 04:19:24 +02:00
29 lines
762 B
Docker
29 lines
762 B
Docker
|
#
|
||
|
# Dockerfile for presto-ce
|
||
|
#
|
||
|
|
||
|
FROM openjdk:8-jre-alpine
|
||
|
MAINTAINER kev <noreply@easypi.pro>
|
||
|
|
||
|
ENV PRESTO_VERSION=322
|
||
|
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 \
|
||
|
&& apk add --no-cache curl python tar \
|
||
|
&& curl -sSL $PRESTO_SERVER_URL | tar xz --strip 1 \
|
||
|
&& curl -sSL $PRESTO_CLI_URL > ./bin/presto \
|
||
|
&& chmod +x ./bin/presto \
|
||
|
&& apk del curl tar
|
||
|
|
||
|
VOLUME /data
|
||
|
|
||
|
EXPOSE 8080
|
||
|
|
||
|
ENTRYPOINT ["launcher"]
|
||
|
CMD ["run"]
|