mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Build: Add Dockerfile
This commit is contained in:
parent
27913154ea
commit
00c0650f96
Notes:
sideshowbarker
2024-07-19 06:15:59 +09:00
Author: https://github.com/Jongy Commit: https://github.com/SerenityOS/serenity/commit/00c0650f963 Pull-request: https://github.com/SerenityOS/serenity/pull/2313
4 changed files with 17 additions and 6 deletions
|
@ -10,11 +10,6 @@ Make sure you have all the dependencies installed:
|
|||
sudo apt install build-essential cmake curl libmpfr-dev libmpc-dev libgmp-dev e2fsprogs qemu-system-i386 qemu-utils
|
||||
```
|
||||
|
||||
On Docker, install these as well:
|
||||
```bash
|
||||
sudo apt install wget genext2fs
|
||||
```
|
||||
|
||||
**Fedora**
|
||||
```bash
|
||||
sudo dnf install curl cmake mpfr-devel libmpc-devel gmp-devel e2fsprogs @"C Development Tools and Libraries" @Virtualization
|
||||
|
|
|
@ -62,8 +62,11 @@ cleanup() {
|
|||
if [ $use_genext2fs = 0 ] ; then
|
||||
printf "unmounting filesystem... "
|
||||
umount mnt || ( sleep 1 && sync && umount mnt )
|
||||
rmdir mnt
|
||||
else
|
||||
rm -rf mnt
|
||||
fi
|
||||
rmdir mnt
|
||||
|
||||
if [ "$(uname -s)" = "OpenBSD" ]; then
|
||||
vnconfig -u "$VND"
|
||||
elif [ "$(uname -s)" = "FreeBSD" ]; then
|
||||
|
|
1
Toolchain/.dockerignore
Normal file
1
Toolchain/.dockerignore
Normal file
|
@ -0,0 +1 @@
|
|||
*
|
12
Toolchain/Dockerfile
Normal file
12
Toolchain/Dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
|||
FROM ubuntu:20.04
|
||||
|
||||
RUN DEBIAN_FRONTEND="noninteractive" apt-get update -y && apt-get install -y tzdata
|
||||
|
||||
RUN apt-get install -y build-essential cmake curl libmpfr-dev libmpc-dev libgmp-dev e2fsprogs qemu-utils wget genext2fs sudo
|
||||
|
||||
RUN mkdir /serenity
|
||||
|
||||
WORKDIR /serenity
|
||||
|
||||
RUN /bin/bash
|
||||
|
Loading…
Reference in a new issue