Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
faildeny committed Oct 11, 2024
1 parent a4e83ce commit ff7443d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM ubuntu
FROM ubuntu:22.04

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --assume-yes \
pip iputils-ping curl wget wkhtmltopdf

RUN apt-get update -y && apt-get upgrade -y && apt-get install python3 pip iputils-ping curl wget -y
COPY requirements.txt /home/requirements.txt
RUN pip3 install -r /home/requirements.txt
RUN ln -s /usr/bin/python3 /usr/bin/python

WORKDIR /flcore
2 changes: 1 addition & 1 deletion flcore/report/generate_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def generate_report(experiment_path: str):
os.makedirs(fig_dir, exist_ok=True)

# Copy images dir to the experiment dir
os.system(f'cp -r flcore/report/images/ {fig_dir}')
os.system(f'cp -r flcore/report/images/* {fig_dir}')

# Read the CSV file
df = pd.read_csv(results_file)
Expand Down
2 changes: 1 addition & 1 deletion flcore/report/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h5 class="card-title">{{ key }}</h5>
{{ value.table }}

{%- for plot in value.plot %}
<img src="{{ plot }}" width="33%">
<img src="{{ plot }}" width="31%">
{%- endfor %}

</p>
Expand Down

0 comments on commit ff7443d

Please sign in to comment.