Skip to content

Commit

Permalink
add build args
Browse files Browse the repository at this point in the history
  • Loading branch information
Haidong Yi committed Aug 23, 2024
1 parent bc09825 commit 94fdbbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deepmod2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ RUN git clone https://github.com/WGLab/DeepMod2 \
# Final stage
FROM python:3.9.19-slim-bullseye AS final

ARG BUILD_VERSION=v0.3.2

################## METADATA ######################
LABEL base_image="python:3.9.19-slim-bullseye"
LABEL version="1"
Expand All @@ -29,6 +31,8 @@ LABEL extra.identifiers.biotools="DeepMod2"

RUN pip install --no-cache-dir torch==2.1.2 --index-url https://download.pytorch.org/whl/cpu

WORKDIR /workspace

COPY --from=source /app/ /workspace

COPY requirements.txt /workspace/
Expand All @@ -37,7 +41,5 @@ COPY requirements.txt /workspace/
RUN pip install --no-cache-dir -r /workspace/requirements.txt \
&& rm /workspace/requirements.txt

WORKDIR workspace

CMD ["python", "DeepMod2/deepmod2", "--help"]

0 comments on commit 94fdbbb

Please sign in to comment.