Initial commit
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
16
obu-node/Dockerfile
Normal file
16
obu-node/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM python:3.11 AS compile-image
|
||||
WORKDIR /federated-example
|
||||
COPY requirements.txt .
|
||||
RUN python3 -m pip install --upgrade pip
|
||||
RUN python3 -m venv /venv
|
||||
RUN . /venv/bin/activate && \
|
||||
python3 -m ensurepip --upgrade && \
|
||||
python3 -m pip install -r /federated-example/requirements.txt
|
||||
|
||||
FROM python:3.11 AS run-image
|
||||
COPY --from=compile-image /venv /venv
|
||||
|
||||
WORKDIR /federated-example/src
|
||||
|
||||
COPY . /federated-example/
|
||||
CMD . /venv/bin/activate && python3 client.py $SERVER_IP_FLWR $PARAMETER_IP:5000 $SERVER_IP_AGG $CLIENT_ID
|
||||
Reference in New Issue
Block a user