Skip to content

Commit 31b07ad

Browse files
committed
Tune Dockerfile
1 parent 0e7340b commit 31b07ad

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG USERNAME=flwr-vscode
77
RUN 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
2323
RUN 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
2828
RUN python3 -m venv /opt/venv && chown -R $USERNAME:$USERNAME /opt/venv
2929
ENV 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

3433
USER $USERNAME
3534
ENV PATH="/home/$USERNAME/.local/bin:${PATH}"

.github/workflows/devcontainer-publish.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ jobs:
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

0 commit comments

Comments
 (0)