File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ ARG USERNAME=flwr-vscode
77RUN useradd -m -s /bin/bash $USERNAME \
88 && apt-get update \
99 # [Optional] Add sudo support. Omit if you don't need to install software after connecting.
10- && apt-get install -y sudo bash \
10+ && apt-get install --no-install-recommends - y sudo bash \
1111 && echo $USERNAME ALL=\( root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
1212 && chmod 0440 /etc/sudoers.d/$USERNAME
1313
@@ -21,15 +21,14 @@ RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhisto
2121
2222# Install system dependencies
2323RUN apt-get update
24- RUN apt-get install -y curl wget gnupg python3 python-is-python3 python3-pip git \
24+ RUN apt-get install --no-install-recommends - y curl wget gnupg python3 python-is-python3 python3-pip git \
2525 build-essential tmux vim python3-venv
2626
2727# Create and activate a virtual environment
2828RUN python3 -m venv /opt/venv && chown -R $USERNAME:$USERNAME /opt/venv
2929ENV PATH="/opt/venv/bin:$PATH"
3030
31- RUN python -m pip install -U pip
32- RUN pip install "git+https://github.com/adap/flower.git#subdirectory=framework"
31+ RUN python -m pip install -U --no-cache-dir pip "git+https://github.com/adap/flower.git#subdirectory=framework"
3332
3433USER $USERNAME
3534ENV PATH="/home/$USERNAME/.local/bin:${PATH}"
Original file line number Diff line number Diff line change 2121 - name : Checkout repository
2222 uses : actions/checkout@v4
2323
24- - name : Lint Dockerfile with Hadolint
25- run : docker run --rm -i ghcr.io/hadolint/hadolint < .devcontainer/Dockerfile
26-
2724 - name : Set up Docker Buildx
2825 uses : docker/setup-buildx-action@v3
2926
You can’t perform that action at this time.
0 commit comments