Skip to content

Commit

Permalink
configurable source/branch with default
Browse files Browse the repository at this point in the history
Signed-off-by: Shah, Karan <[email protected]>
  • Loading branch information
MasterSkepticista committed Oct 23, 2024
1 parent 681693a commit 84fa6ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion openfl-docker/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# SPDX-License-Identifier: Apache-2.0
# ------------------------------------
# OpenFL Base Image
# $> docker build . -t openfl -f Dockerfile.base \
# [--build-arg BRANCH=develop] \
# [--build-arg SOURCE=https://github.com/USERNAME/openfl.git]
# ------------------------------------
FROM ubuntu:22.04 AS base

Expand Down Expand Up @@ -30,7 +33,9 @@ WORKDIR /home/user
ENV PATH=/home/user/.local/bin:$PATH

# Install OpenFL.
RUN git clone --depth=1 --branch=develop https://github.com/securefederatedai/openfl.git && \
ARG SOURCE=https://github.com/securefederatedai/openfl.git
ARG BRANCH=develop
RUN git clone --depth=1 --branch=${BRANCH} ${SOURCE} && \
cd openfl && \
pip install --no-cache-dir -U pip setuptools wheel && \
pip install --no-cache-dir -e . && \
Expand Down

0 comments on commit 84fa6ba

Please sign in to comment.