Skip to content

Commit c6138f7

Browse files
committed
update Dockerfile and add DockerHub to README.md
1 parent 46906bd commit c6138f7

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ RUN apt-get update -y \
1414
##ENV VIRTUAL_ENV=/opt/venv
1515
##RUN python3 -m venv $VIRTUAL_ENV
1616
##ENV PATH="$VIRTUAL_ENV/bin:$PATH"
17-
RUN cd NOREC4DNA && pip3 install wheel && pip3 install -r requirements.txt --no-cache-dir && python3 setup.py install && cd ..
17+
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
1818
#RUN chmod +x setup.sh && .\setup.sh
1919
RUN apt-get purge -y --auto-remove build-essential \
2020
&& apt-get clean \
2121
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
2222

2323

2424
# squash / reduce size
25-
FROM scratch
26-
COPY --from=builder / /
25+
#FROM scratch
26+
#COPY --from=builder / /
2727
WORKDIR /optimize
2828
##ENV VIRTUAL_ENV=/opt/venv
2929
##ENV PATH="$VIRTUAL_ENV/bin:$PATH"

README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,19 @@ for a typical desktop pc, a runtime in the order of multiple days has to be expe
103103

104104
#### Running on a server using docker:
105105

106-
> mkdir dist_opt_volume
106+
> mkdir ofc4dna_volume
107107
>
108-
> docker build -t dist_opt .
108+
> docker build -t ofc4dna .
109109
>
110-
> docker run -d --name dist_opt --mount source=dist_opt_volume,target=/optimize/results dist_opt
110+
> docker run -d --name ofc4dna --mount source=ofc4dna_volume,target=/optimize/results ofc4dna
111111
>
112-
> docker logs -f dist_opt
112+
> docker logs -f ofc4dna
113113
114114
by default, the container will run the optimization suite with the default parameters.
115115

116+
#### Docker-hub image:
117+
The image is also available on docker-hub:
118+
[https://hub.docker.com/r/mosla/ofc4dna](https://hub.docker.com/r/mosla/ofc4dna)
116119

117120
### Other improvements:
118121
All improvemtns shown in the paper were directly integrated into the NOREC4DNA framework and can either directly or

0 commit comments

Comments
 (0)