Skip to content

Commit bf3b784

Browse files
committed
Update docker to build without git clone
1 parent 475ddd1 commit bf3b784

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/docker.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ jobs:
3434
- name: Build and push Docker image
3535
uses: docker/build-push-action@v4
3636
with:
37-
context: ./docker
37+
context: .
38+
file: ./docker/Dockerfile
3839
push: true
3940
tags: ${{ steps.meta.outputs.tags }}
4041
labels: ${{ steps.meta.outputs.labels }}

docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ VOLUME /workspace
99
VOLUME /scratch
1010

1111
# Tools
12-
COPY start-notebook.sh /usr/local/bin/start-notebook
12+
COPY docker/start-notebook.sh /usr/local/bin/start-notebook
13+
COPY . /tmp/SIGnature
1314

1415
# Environment
1516
ENV SCDATA_HOME=/data
@@ -80,8 +81,7 @@ RUN pip3 install \
8081
tqdm
8182

8283
# Install SIGnature API
83-
RUN git clone https://github.com/Genentech/SIGnature.git /tmp/SIGnature \
84-
&& cd /tmp/SIGnature \
84+
RUN cd /tmp/SIGnature \
8585
&& pip install .
8686

8787
# Entry points

0 commit comments

Comments
 (0)