/fix : better docker added rom as native

This commit is contained in:
axle 2025-07-29 09:41:43 -07:00
parent c8e3c0f190
commit 66a4604185
2 changed files with 31 additions and 26 deletions

View File

@ -1,36 +1,41 @@
FROM ubuntu:24.04 AS build # Base image
FROM ubuntu:22.04
ENV TZ=UTC ENV TZ=UTC
ENV LANG=C.UTF-8 ENV LANG=C.UTF-8
# Install Required Dependencies # Set timezone
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
apt-get update && apt-get install -y \
curl \ # Install build dependencies
RUN apt-get update && apt-get install -y \
make \
git \
build-essential \ build-essential \
binutils-mips-linux-gnu \ binutils-mips-linux-gnu \
pkg-config \ curl \
python3 \ python3 \
python3-pip \ python3-pip \
python3-venv \ python3-venv \
git \ libpng-dev \
wget \ libxml2-dev && \
unzip \ apt-get clean && rm -rf /var/lib/apt/lists/*
vbindiff \
vim \ # Set working directory to project
clang-tidy-14 \ WORKDIR /
clang-format-14 \
libpng-dev && \ # Optional: mark directory safe for git is that needed
# Add source for practicerom-dev install RUN git config --global --add safe.directory /mm
curl https://practicerom.com/public/packages/debian/pgp.pub | apt-key add - && \ # future after wget rom
echo deb http://practicerom.com/public/packages/debian staging main >/etc/apt/sources.list.d/practicerom.list && \ RUN git clone https://github.com/zeldaret/mm.git
apt-get update && \
apt-get install -y \ # remove dependancies
practicerom-dev && \ # add volume for rom endpoint
apt-get clean && \ WORKDIR /mm/baseroms/n64-us
rm -rf /var/lib/apt/lists/* COPY ./baseroms/n64-us/baserom.z64 .
WORKDIR /mm WORKDIR /mm
RUN git config --global --add safe.directory /mm RUN make init
ENTRYPOINT ["/usr/bin/env", "bash", "-c"] # Default entry (you may override in mcp config)
ENTRYPOINT ["/usr/bin/env", "bash"]

View File

@ -201,8 +201,8 @@ Run the following in my current folder:
``` ```
docker run -it --rm \ docker run -it --rm \
--mount type=bind,source="$(pwd)",destination=/mm \ -v ./baseroms:/mm/baseroms \
mm /usr/bin/env bash mm
``` ```
Once inside, Claude can: Once inside, Claude can: