mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-04-11 07:22:04 -07:00
Refactor dockerfile
This commit is contained in:
parent
da1fc5788c
commit
4ba3b1a580
1 changed files with 25 additions and 15 deletions
40
Dockerfile
40
Dockerfile
|
|
@ -1,32 +1,42 @@
|
||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy the current directory into the container at /app
|
|
||||||
COPY . /app
|
|
||||||
|
|
||||||
# Install necessary packages
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
# Mach build tools
|
# Mach build tools
|
||||||
build-essential make msitools wget unzip rustc \
|
build-essential \
|
||||||
|
make \
|
||||||
|
msitools \
|
||||||
|
wget \
|
||||||
|
unzip \
|
||||||
# Python
|
# Python
|
||||||
python3 python3-dev python3-pip \
|
python3 \
|
||||||
|
python3-dev \
|
||||||
|
python3-pip \
|
||||||
# Camoufox build system tools
|
# Camoufox build system tools
|
||||||
git p7zip-full golang-go aria2 curl \
|
git \
|
||||||
|
p7zip-full \
|
||||||
|
golang-go \
|
||||||
|
aria2 \
|
||||||
|
curl \
|
||||||
|
rsync \
|
||||||
# CA certificates
|
# CA certificates
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
&& update-ca-certificates
|
&& update-ca-certificates \
|
||||||
|
&& curl https://sh.rustup.rs -sSf | bash -s -- -y \
|
||||||
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
|
COPY . .
|
||||||
ENV PATH="/root/.cargo/bin:${PATH}"
|
|
||||||
|
|
||||||
# Fetch Firefox & apply initial patches
|
# Run setup and bootstrap
|
||||||
RUN make setup-minimal && \
|
RUN make setup-minimal && \
|
||||||
make mozbootstrap && \
|
make mozbootstrap && \
|
||||||
mkdir /app/dist
|
mkdir -p /app/dist
|
||||||
|
|
||||||
# Mount .mozbuild directory and dist folder
|
VOLUME ["/root/.mozbuild", "/app/dist"]
|
||||||
VOLUME /root/.mozbuild
|
|
||||||
VOLUME /app/dist
|
|
||||||
|
|
||||||
ENTRYPOINT ["python3", "./multibuild.py"]
|
ENTRYPOINT ["python3", "./multibuild.py"]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue