Updated Docker Environment

This commit is contained in:
Maddox Werts 2024-08-09 23:47:37 -04:00
parent fdfa49fd36
commit 017aeaed1e
2 changed files with 5 additions and 5 deletions

View file

@ -6,10 +6,6 @@ FROM debian
RUN mkdir /src /app /tmp/src RUN mkdir /src /app /tmp/src
WORKDIR /tmp/src WORKDIR /tmp/src
## Copying compile script
COPY docker/flipper-dev.sh /bin/flipper-dev.sh
RUN chmod +x /bin/flipper-dev.sh
## Installing Requisites ## Installing Requisites
RUN apt update -y RUN apt update -y
RUN apt install -y wget curl build-essential RUN apt install -y wget curl build-essential
@ -22,5 +18,9 @@ RUN /tmp/rustup.sh -y
## Flipper-Zero Build Target ## Flipper-Zero Build Target
RUN /root/.cargo/bin/rustup target add thumbv7em-none-eabihf RUN /root/.cargo/bin/rustup target add thumbv7em-none-eabihf
## Copying compile script
COPY docker/flipper-dev.sh /bin/flipper-dev.sh
RUN chmod +x /bin/flipper-dev.sh
# RUNTIME # # RUNTIME #
CMD "/bin/flipper-dev.sh" CMD "/bin/flipper-dev.sh"

View file

@ -2,7 +2,7 @@
cp -r /src/* ./ cp -r /src/* ./
# Building the Project # Building the Project
cargo build /root/.cargo/bin/cargo build
# Copy the .FAP file to the app directory # Copy the .FAP file to the app directory
cp ./target/thumbv7em-none-eabihf/debug/*.fap /app/ cp ./target/thumbv7em-none-eabihf/debug/*.fap /app/