mirror of
https://github.com/daijro/camoufox.git
synced 2026-08-18 16:00:58 +00:00
7adc6dc17a
* Fix Linux ARM Builds (#4) * linux fix * platform specific sqlite dependency * linux symlink --------- Co-authored-by: Ubuntu <ubuntu@ip-172-31-25-90.us-east-2.compute.internal> * symlinks for all linux archs --------- Co-authored-by: Ubuntu <ubuntu@ip-172-31-25-90.us-east-2.compute.internal>
34 lines
864 B
Docker
34 lines
864 B
Docker
FROM ubuntu:latest
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy the current directory into the container at /app
|
|
COPY . /app
|
|
|
|
# Install necessary packages
|
|
RUN apt-get update && apt-get install -y \
|
|
# Mach build tools
|
|
build-essential make msitools wget unzip rustc \
|
|
# Python
|
|
python3 python3-dev python3-pip \
|
|
# Camoufox build system tools
|
|
git p7zip-full golang-go aria2 curl rsync \
|
|
# Platform-specific libraries for Linux builds
|
|
libsqlite3-dev \
|
|
# CA certificates
|
|
ca-certificates \
|
|
&& update-ca-certificates
|
|
|
|
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
|
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
|
|
|
# Fetch Firefox & apply initial patches
|
|
RUN make setup-minimal && \
|
|
make mozbootstrap && \
|
|
mkdir -p /app/dist
|
|
|
|
# Mount .mozbuild directory and dist folder
|
|
VOLUME /root/.mozbuild
|
|
VOLUME /app/dist
|
|
|
|
ENTRYPOINT ["python3", "./multibuild.py"] |