forked from daijro/camoufox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (25 loc) · 784 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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 \
# 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 /app/dist
# Mount .mozbuild directory and dist folder
VOLUME /root/.mozbuild
VOLUME /app/dist
ENTRYPOINT ["python3", "./multibuild.py"]