Skip to content

Commit

Permalink
Let Docker image only include relevant files - closes #89
Browse files Browse the repository at this point in the history
  • Loading branch information
StegSchreck committed Jun 16, 2019
1 parent 978f18c commit 8b4ad8d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ RUN sudo apt-get update \
&& sudo apt-get install -y --no-install-recommends vim python3 python3-pip \
&& sudo rm -rf /var/lib/apt/lists/*

RUN sudo mkdir /RatS
COPY . /RatS
RUN sudo mkdir -p /RatS/RatS
WORKDIR /RatS
RUN sudo chown -R seluser: .
COPY ["./requirements.txt", "./transfer_ratings.py", "/RatS/"]
RUN sudo pip3 install --no-cache-dir setuptools \
&& sudo pip3 install --no-cache-dir -r ./requirements.txt
COPY ./RatS /RatS/RatS/
RUN sudo chown -R seluser: .

CMD ["/bin/true"]

0 comments on commit 8b4ad8d

Please sign in to comment.