Skip to content

Commit

Permalink
feat(*) add SuperNode dockerfile
Browse files Browse the repository at this point in the history
depends on: #3240
- Adds the SuperNode Dockerfile.
- Allows the new Dockerfile to install a stable or nightly package of Flower.
- Removes the old Client Dockerfile.

Signed-off-by: Robert Steiner <[email protected]>
  • Loading branch information
Robert-Steiner committed Apr 18, 2024
1 parent e2721fc commit 8fc2814
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/docker/client/Dockerfile

This file was deleted.

28 changes: 28 additions & 0 deletions src/docker/supernode/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2024 Flower Labs GmbH. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================

ARG BASE_REPOSITORY=flwr/base
ARG PYTHON_VERSION=3.11
ARG UBUNTU_VERSION=ubuntu22.04
FROM $BASE_REPOSITORY:py${PYTHON_VERSION}-${UBUNTU_VERSION}

ARG FLWR_PACKAGE=flwr
ARG FLWR_VERSION
RUN python -m pip install -U --no-cache-dir \
${FLWR_PACKAGE}==${FLWR_VERSION} && \
pyenv rehash

WORKDIR /app
ENTRYPOINT ["flower-supernode"]

0 comments on commit 8fc2814

Please sign in to comment.