1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
dockerfiles/datax/Dockerfile
2020-06-18 15:44:18 +08:00

20 lines
396 B
Docker

#
# Dockerfile for datax
#
FROM openjdk:8-alpine
MAINTAINER EasyPi Software Foundation
WORKDIR /opt/datax
RUN set -xe \
&& apk add --no-cache curl python2 tar \
&& curl -sSL http://datax-opensource.oss-cn-hangzhou.aliyuncs.com/datax.tar.gz | tar xz --strip 1 \
&& bin/datax.py --help \
&& apk del curl tar
ENV PATH=/opt/datax/bin:$PATH
ENTRYPOINT ["datax.py"]
CMD ["--help"]