summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2025-08-12 20:02:58 -0400
committerGitHub <noreply@github.com>2025-08-12 17:02:58 -0700
commita0c992ea35cc9d18a0026a6c2c0b499a4bb61690 (patch)
tree524ba5dad409391c5e832844d2e25bac7b8789f2 /Dockerfile
parent1ca6ca804df58d56352bb5007ab048cb0dad6757 (diff)
Fix docker builds (#1814)
* Fix dockerfile. It was broken because the practicerom package changed stuff and apt didn't like whatever changed. This is the commit that seems to have broken how the old practicerom package worked: https://github.com/glankk/n64/commit/e7bec93b0b11b37a63abcf5ac28728f2fcd4045b#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 * Update docker docs. Some references were broken in the markdown files, and there's no longer a need to run the git `safe.directory` command since the docker file was doing it already * Include `gcc-mips-linux-gnu` in the dockerfile * break up dockerfile commands a bit more * Update practicerom instructions * Update practice rom again
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile25
1 files changed, 14 insertions, 11 deletions
diff --git a/Dockerfile b/Dockerfile
index a75375f88..df561dd35 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,12 +3,18 @@ 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 ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
- apt-get update && apt-get install -y \
- curl \
+RUN apt-get update && apt-get install -y \
build-essential \
binutils-mips-linux-gnu \
+ gcc-mips-linux-gnu \
pkg-config \
python3 \
python3-pip \
@@ -20,14 +26,11 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone &
vim \
clang-tidy-14 \
clang-format-14 \
- libpng-dev && \
- # Add source for practicerom-dev install
- curl https://practicerom.com/public/packages/debian/pgp.pub | apt-key add - && \
- echo deb http://practicerom.com/public/packages/debian staging main >/etc/apt/sources.list.d/practicerom.list && \
- apt-get update && \
- apt-get install -y \
- practicerom-dev && \
- apt-get clean && \
+ libpng-dev \
+ practicerom-dev
+
+# Post dependencies cleanup
+RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /mm