mirror of
https://github.com/kodxana/madiator-docker-runpod.git
synced 2024-11-22 10:50:12 +01:00
Dockerfile for Bake config
This commit is contained in:
parent
d3b15d6b83
commit
776f1c9d03
1 changed files with 14 additions and 15 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Use the specified base image
|
# lutzapps - use the specified CUDA version
|
||||||
|
ARG BASE_IMAGE
|
||||||
# lutzapps - use uppercase "AS"
|
FROM ${BASE_IMAGE:-madiator2011/better-base:cuda12.4} AS base
|
||||||
FROM madiator2011/better-base:cuda12.4 AS base
|
#FROM madiator2011/better-base:cuda12.4 AS base
|
||||||
|
|
||||||
# lutzapps - prepare for local developement and debugging
|
# lutzapps - prepare for local developement and debugging
|
||||||
# needed to change the ORDER of "apt-get commands" and move the "update-alternatives" for python3
|
# needed to change the ORDER of "apt-get commands" and move the "update-alternatives" for python3
|
||||||
|
@ -10,14 +10,16 @@
|
||||||
|
|
||||||
# Install Python 3.11, set it as default, and remove Python 3.10
|
# Install Python 3.11, set it as default, and remove Python 3.10
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y python3.11 python3.11-venv python3.11-dev python3.11-distutils aria2 git \
|
# removed: 2x git nginx ffmpeg (as they are already installed with the base image)
|
||||||
pv git rsync zstd libtcmalloc-minimal4 bc nginx ffmpeg && \
|
# added: zip (for easier folder compression)
|
||||||
apt-get remove -y python3.10 python3.10-minimal libpython3.10-minimal libpython3.10-stdlib && \
|
apt-get install -y python3.11 python3.11-venv python3.11-dev python3.11-distutils aria2 zip \
|
||||||
update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1 && \
|
pv rsync zstd libtcmalloc-minimal4 bc && \
|
||||||
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 && \
|
apt-get remove -y python3.10 python3.10-minimal libpython3.10-minimal libpython3.10-stdlib && \
|
||||||
apt-get autoremove -y && \
|
update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1 && \
|
||||||
apt-get clean && \
|
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
apt-get autoremove -y && \
|
||||||
|
apt-get clean && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install pip for Python 3.11
|
# Install pip for Python 3.11
|
||||||
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
|
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
|
||||||
|
@ -63,9 +65,6 @@ EXPOSE 7222
|
||||||
# lutzapps - added a "app/tests" folder with script and testdata and readme file
|
# lutzapps - added a "app/tests" folder with script and testdata and readme file
|
||||||
# lutzapps - grouped NGINX files in a sub-folder for cleaner view
|
# lutzapps - grouped NGINX files in a sub-folder for cleaner view
|
||||||
|
|
||||||
# Copy the README.md
|
|
||||||
COPY nginx/README.md /usr/share/nginx/html/README.md
|
|
||||||
|
|
||||||
# NGINX configuration
|
# NGINX configuration
|
||||||
COPY nginx/nginx.conf /etc/nginx/nginx.conf
|
COPY nginx/nginx.conf /etc/nginx/nginx.conf
|
||||||
COPY nginx/readme.html /usr/share/nginx/html/readme.html
|
COPY nginx/readme.html /usr/share/nginx/html/readme.html
|
||||||
|
|
Loading…
Reference in a new issue