Skip to content
Snippets Groups Projects

Fix moving all python files to docker image context

Merged Corné Lukken requested to merge lukken/py-pcc-sim:master into master
1 unresolved thread
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
+ 4
3
FROM ubuntu:20.04
FROM ubuntu:20.04
COPY requirements.txt /requirements.txt
# Just copy everything
 
COPY . /pypcc
    • Comment on lines -3 to +4

      But there is only a requirements.txt? This just copies the Dockerfile as well, which is not needed. If we need to copy a bunch of files, I propose we make a pypcc dir in the repo and copy all of that to /pypcc.

Please register or sign in to reply
RUN apt-get update && apt-get install -y python3 python3-pip python3-yaml git && \
RUN apt-get update && apt-get install -y python3 python3-pip python3-yaml git && \
pip3 install -r requirements.txt
pip3 install -r /pypcc/requirements.txt
WORKDIR ./
WORKDIR /pypcc
Loading