Skip to content

Commit

Permalink
Optimize Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Feb 12, 2021
1 parent ab04ba0 commit da739b1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 <dev@babyMRI.org>"

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"]

0 comments on commit da739b1

Please sign in to comment.