From da739b1814aaca54cc781093f93e141ea8fd1f2f Mon Sep 17 00:00:00 2001 From: Jennings Zhang Date: Fri, 12 Feb 2021 18:59:01 -0500 Subject: [PATCH] Optimize Dockerfile --- Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 04c5e33..66574cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,13 +21,15 @@ # docker run -ti -e HOST_IP=$(ip route | grep -v docker | awk '{if(NF==11) print $9}') --entrypoint /bin/bash local/pl-brainmgz # -FROM fnndsc/ubuntu-python3:latest -MAINTAINER fnndsc "dev@babymri.org" +FROM python:3.9.1-alpine +LABEL maintainer="FNNDSC " WORKDIR /usr/local/src + +COPY requirements.txt . +RUN pip install -r requirements.txt + COPY . . -RUN pip --disable-pip-version-check install -r requirements.txt \ - && pip --disable-pip-version-check install . +RUN pip install . -WORKDIR /usr/local/bin CMD ["brainmgz", "--help"]