-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
↩ revert(docker): Rollback the process of image building
Using poetry to build image is way too heavy for github actions storage😂.
- Loading branch information
Showing
1 changed file
with
9 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
FROM ubuntu:22.04 | ||
ARG REPO_NAME | ||
ARG REPO_PATH | ||
|
||
RUN apt update && \ | ||
apt install build-essential git python3.10 python3-pip -y && \ | ||
apt install git python3.10 python3-pip -y && \ | ||
cd /usr/bin && \ | ||
ln -s python3.10 python && \ | ||
pip install --upgrade pip && \ | ||
pip install poetry | ||
ln -s python3.10 python | ||
|
||
WORKDIR /root | ||
|
||
COPY . /root/${REPO_NAME} | ||
RUN git clone https://github.com/KarhouTam/FL-bench.git | ||
|
||
WORKDIR /root/${REPO_NAME} | ||
WORKDIR /root/FL-bench | ||
|
||
RUN cd .environment && \ | ||
sed -i "10,14d" pyproject.toml && \ | ||
poetry lock --no-update && \ | ||
poetry install --no-root | ||
|
||
CMD poetry shell -C .environment -q | ||
RUN pip install -r .environment/requirements.txt | ||
|
||
# port for visdom | ||
EXPOSE 8097 | ||
EXPOSE 8097 |