diff --git a/Dockerfile b/Dockerfile index 99b9e21..4b830d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ RUN apt-get update -y \ ##ENV VIRTUAL_ENV=/opt/venv ##RUN python3 -m venv $VIRTUAL_ENV ##ENV PATH="$VIRTUAL_ENV/bin:$PATH" -RUN cd NOREC4DNA && pip3 install wheel && pip3 install -r requirements.txt --no-cache-dir && python3 setup.py install && cd .. +RUN cd NOREC4DNA && pip3 install wheel && pip3 install -r requirements.txt --no-cache-dir && python3 setup.py install && cd .. && pip install -r requirements.txt --no-cache-dir #RUN chmod +x setup.sh && .\setup.sh RUN apt-get purge -y --auto-remove build-essential \ && apt-get clean \ @@ -22,8 +22,8 @@ RUN apt-get purge -y --auto-remove build-essential \ # squash / reduce size -FROM scratch -COPY --from=builder / / +#FROM scratch +#COPY --from=builder / / WORKDIR /optimize ##ENV VIRTUAL_ENV=/opt/venv ##ENV PATH="$VIRTUAL_ENV/bin:$PATH" diff --git a/README.md b/README.md index 01c7fee..363232e 100644 --- a/README.md +++ b/README.md @@ -103,16 +103,19 @@ for a typical desktop pc, a runtime in the order of multiple days has to be expe #### Running on a server using docker: -> mkdir dist_opt_volume +> mkdir ofc4dna_volume > -> docker build -t dist_opt . +> docker build -t ofc4dna . > -> docker run -d --name dist_opt --mount source=dist_opt_volume,target=/optimize/results dist_opt +> docker run -d --name ofc4dna --mount source=ofc4dna_volume,target=/optimize/results ofc4dna > -> docker logs -f dist_opt +> docker logs -f ofc4dna by default, the container will run the optimization suite with the default parameters. +#### Docker-hub image: +The image is also available on docker-hub: +[https://hub.docker.com/r/mosla/ofc4dna](https://hub.docker.com/r/mosla/ofc4dna) ### Other improvements: All improvemtns shown in the paper were directly integrated into the NOREC4DNA framework and can either directly or