Skip to content

Commit

Permalink
↩ revert(docker): Rollback the process of image building
Browse files Browse the repository at this point in the history
Using poetry to build image is way too heavy for github actions storage😂.
  • Loading branch information
KarhouTam committed Feb 29, 2024
1 parent 65a872b commit 7ebd658
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .environment/Dockerfile
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

0 comments on commit 7ebd658

Please sign in to comment.