-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (27 loc) · 1010 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# SPDX-FileCopyrightText: 2024 Benedikt Franke <[email protected]>
# SPDX-FileCopyrightText: 2024 Florian Heinrich <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
FROM ghcr.io/dlr-ki/fl-demonstrator-client:main
#FROM local/fl-demonstrator-client:latest
# install system dependencies
USER root
RUN apt-get update && \
# git dependencies
apt-get install -y git && \
# cleaning up unused files
rm -rf /var/lib/apt/lists/*
USER client
# install app dependencies (only)
COPY --chown=client:client pyproject.toml README.md /home/client/app/
RUN mkdir -p src && \
pip install --no-warn-script-location . && \
rm -rf src
# install app (training code)
COPY --chown=client:client ./src /home/client/app/src
RUN pip install --no-warn-script-location . && \
rm -rf pyproject.toml README.md
# settings
ENV FL_DEMONSTRATOR_BASE_URL=http://web:8000
ENV FL_CLIENT_SETTINGS_MODULE=settings.Settings
ENV FL_CLIENT_ADDITIONAL_SYS_PATH=/home/client/app:/home/client/app/src