FlippyPass/docker/Dockerfile

26 lines
No EOL
561 B
Docker

# BACKEND #
## Parent Container
FROM debian
## Creating Directories
RUN mkdir /src /app /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
RUN apt update -y
RUN apt install -y wget curl build-essential
## Downloading RUSTUP
RUN wget https://sh.rustup.rs -O /tmp/rustup.sh
RUN chmod +x /tmp/rustup.sh
RUN /tmp/rustup.sh -y
## Flipper-Zero Build Target
RUN /root/.cargo/bin/rustup target add thumbv7em-none-eabihf
# RUNTIME #
CMD "/bin/flipper-dev.sh"