-
Notifications
You must be signed in to change notification settings - Fork 551
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (32 loc) · 1.09 KB
/
Dockerfile
File metadata and controls
39 lines (32 loc) · 1.09 KB
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
33
34
35
36
37
38
39
FROM ubuntu:24.04 AS build
ENV TZ=UTC
ENV LANG=C.UTF-8
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Add source for practicerom-dev install
RUN apt-get update && apt-get install -y curl && \
curl -o /usr/share/keyrings/practicerom-archive-keyring.gpg https://practicerom.com/public/packages/debian/practicerom-archive-keyring.gpg && \
echo 'deb [arch=all,amd64 signed-by=/usr/share/keyrings/practicerom-archive-keyring.gpg] http://practicerom.com/public/packages/debian unstable main' > /etc/apt/sources.list.d/practicerom.list
# Install Required Dependencies
RUN apt-get update && apt-get install -y \
build-essential \
binutils-mips-linux-gnu \
gcc-mips-linux-gnu \
pkg-config \
python3 \
python3-pip \
python3-venv \
git \
wget \
unzip \
vbindiff \
vim \
clang-tidy-14 \
clang-format-14 \
libpng-dev \
practicerom-dev
# Post dependencies cleanup
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /mm
RUN git config --global --add safe.directory /mm
ENTRYPOINT ["/usr/bin/env", "bash", "-c"]