From 444edf11901ba4d40890e2a11c8803e477624644 Mon Sep 17 00:00:00 2001 From: Duo Xu Date: Tue, 11 Jun 2024 01:58:51 -0400 Subject: [PATCH] Change dockerfile to ubuntu 20.04 and correct OS check issue --- docker/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 318675e..300315a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:latest +FROM ubuntu:20.04 RUN apt-get update && apt-get install -y git wget python3 python3-distutils sudo nano && sudo ln -s /usr/bin/python3 /usr/bin/python @@ -6,6 +6,7 @@ WORKDIR /app RUN git clone https://github.com/aman-goel/avr.git WORKDIR /app/avr +RUN sed -i 's/-n "$(uname -a | grep Ubuntu)"/1 -eq 1/g' build.sh ## to get rid of OS check RUN chmod +x build.sh && chmod +x deps/build_deps.sh ## run build.sh manually, as it requires some y-s CMD ["bash"]