-
Notifications
You must be signed in to change notification settings - Fork 907
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1fb648c
commit a3491af
Showing
4 changed files
with
21 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# Copyright 2023 Flower Labs GmbH. All Rights Reserved. | ||
|
||
ARG BASE_IMAGE_VERSION=22.04 | ||
FROM flwr/base:$BASE_IMAGE_VERSION | ||
ARG BASE_IMAGE_VERSION=py3.11-ubuntu22.04 | ||
FROM flwr/base:$BASE_IMAGE_VERSION as server | ||
|
||
WORKDIR /app | ||
ARG FLWR_VERSION | ||
RUN python -m pip install -U --no-cache-dir flwr[rest]==${FLWR_VERSION} | ||
ENTRYPOINT ["python", "-c", "from flwr.server import run_server; run_server()"] | ||
|
||
# Test if Flower can be successfully installed and imported | ||
FROM flwr/base:$BASE_VERSION | ||
FROM server as test | ||
RUN python -c "from flwr.server import run_server" |