Skip to content

Commit

Permalink
resolved the need to run build.sh by hand
Browse files Browse the repository at this point in the history
  • Loading branch information
xdddduo committed Jun 16, 2024
1 parent 444edf1 commit 896a1c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
FROM ubuntu:20.04

ENV TZ="America/Detroit"
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get install -y git wget python3 python3-distutils sudo nano && sudo ln -s /usr/bin/python3 /usr/bin/python

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
RUN chmod +x build.sh && chmod +x deps/build_deps.sh
RUN ./build.sh

CMD ["bash"]

0 comments on commit 896a1c2

Please sign in to comment.