Skip to content

Commit

Permalink
update Dockerfile and add DockerHub to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thejanky committed Jan 12, 2024
1 parent 46906bd commit c6138f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ 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 \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*


# 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"
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c6138f7

Please sign in to comment.