mirror of https://github.com/zeldaret/mm.git
Updated Docker Image (#1764)
* dockerfile improvement, ubuntu upgrade, reducing docker layers, increased parity with ooo project * changing to apt-get * reducing steps based off PR feedback * improved comments * revert * you have to install curl first * no need to change this
This commit is contained in:
parent
5a9c2871ed
commit
a8eb7e327f
28
Dockerfile
28
Dockerfile
|
@ -1,5 +1,7 @@
|
|||
FROM ubuntu:22.04 as build
|
||||
FROM ubuntu:24.04 AS build
|
||||
|
||||
ENV TZ=UTC
|
||||
ENV LANG=C.UTF-8
|
||||
|
||||
# Install Required Dependencies
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
|
||||
|
@ -10,6 +12,7 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone &
|
|||
pkg-config \
|
||||
python3 \
|
||||
python3-pip \
|
||||
python3-venv \
|
||||
git \
|
||||
wget \
|
||||
unzip \
|
||||
|
@ -18,25 +21,16 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone &
|
|||
clang-tidy-14 \
|
||||
clang-format-14 \
|
||||
libpng-dev && \
|
||||
apt clean && \
|
||||
# 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 && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install practicerom
|
||||
RUN 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 update
|
||||
|
||||
RUN apt-get install -y practicerom-dev
|
||||
|
||||
COPY requirements.txt requirements.txt
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
ENV LANG C.UTF-8
|
||||
|
||||
RUN mkdir /mm
|
||||
|
||||
WORKDIR /mm
|
||||
|
||||
RUN git config --global --add safe.directory /mm
|
||||
|
||||
ENTRYPOINT ["/bin/bash", "-c"]
|
||||
|
|
Loading…
Reference in New Issue