Skip to content

Commit

Permalink
Use arch for docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgian committed Apr 9, 2023
1 parent 3fc6f87 commit 676e44a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
FROM rust
FROM archlinux
COPY . /root/felix

RUN apt-get -y update
RUN apt-get -y install fdisk
RUN apt-get -y install mtools
RUN apt-get -y install dosfstools
RUN pacman --noconfirm -Syu mtools dosfstools base-devel rustup

WORKDIR /root/felix
CMD ["./build.sh"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ First make sure you have Docker installed. Then:
2. Change dir to repo `cd felix`
3. Build the image `docker build -t felix-image .`
4. Run the container `docker run --name felix-container felix-image`
5. Copy build from container to host `docker cp felix-container:/root/felix/build build`
5. Copy build from container to host `docker cp felix-container:/root/felix/build .`

### Build using script
Make sure you have `Rust`,`mtools`,`dosfstools` and `fdisk` installed on your system. Then:
Expand Down

0 comments on commit 676e44a

Please sign in to comment.