File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ FROM hseeberger/scala-sbt:8u252_1.3.13_2.12.11
33LABEL maintainer="fgabler@tue.mpg.de"
44
55ENV TK_BASE_PATH "/root/Toolkit"
6+ # remove this before VC !!!!!!!!!!!!!
7+ ENV MAXMIND_LICENSE ""
68ENV MAXMIND_DB "$TK_BASE_PATH/data/GeoLite2-City.mmdb"
79
810RUN mkdir -p $TK_BASE_PATH/bioprogs/tools
@@ -48,7 +50,7 @@ RUN git clone https://github.com/felixgabler/maxmind-geoip2-scala.git && \
4850 sbt publishLocal
4951
5052# Download maxmind geoip data
51- RUN curl -fsL http ://geolite .maxmind.com/download/geoip/database/ GeoLite2-City.mmdb. gz | gunzip -c > $MAXMIND_DB
53+ RUN curl https ://download .maxmind.com/app/geoip_download?edition_id= GeoLite2-City&license_key=$MAXMIND_LICENSE&suffix=tar. gz | tar xvz -C $MAXMIND_DB
5254
5355VOLUME /toolkit/backend
5456WORKDIR /toolkit/backend
@@ -60,6 +62,7 @@ EXPOSE 9000
6062
6163RUN mv ~/.ivy2 ~/.ivy_image
6264COPY ./docker-entrypoint.sh /
65+ RUN chmod +x ./docker-entrypoint.sh
6366ENTRYPOINT ["/docker-entrypoint.sh" ]
6467
6568CMD ["shell" ]
You can’t perform that action at this time.
0 commit comments