This repository has been archived on 2026-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
FlippyPass/docker/Dockerfile

32 lines
794 B
Text
Raw Normal View History

2024-08-09 22:44:21 -05:00
# BACKEND #
## Parent Container
FROM debian
## Creating Directories
RUN mkdir /src /app /tmp/src
WORKDIR /tmp/src
## Installing Requisites
RUN apt update -y
2024-08-09 23:38:20 -05:00
RUN apt install -y wget curl build-essential pkg-config libssl-dev
2024-08-09 22:44:21 -05:00
## Downloading RUSTUP
RUN wget https://sh.rustup.rs -O /tmp/rustup.sh
RUN chmod +x /tmp/rustup.sh
RUN /tmp/rustup.sh -y
2024-08-09 23:38:20 -05:00
RUN chmod +x /root/.cargo/env
RUN /root/.cargo/env
## Downloading rustup requirements
RUN /root/.cargo/bin/rustup toolchain install nightly
RUN /root/.cargo/bin/cargo install cargo-generate
2024-08-09 22:44:21 -05:00
## Flipper-Zero Build Target
2024-08-09 23:38:20 -05:00
RUN /root/.cargo/bin/rustup target add --toolchain nightly thumbv7em-none-eabihf
2024-08-09 22:44:21 -05:00
2024-08-09 22:47:37 -05:00
## Copying compile script
COPY docker/flipper-dev.sh /bin/flipper-dev.sh
RUN chmod +x /bin/flipper-dev.sh
2024-08-09 22:44:21 -05:00
# RUNTIME #
CMD "/bin/flipper-dev.sh"