formated readme for first run build, standarized docker and pipeline
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
FROM ubuntu:22.04
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
ENV TZ=UTC
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
# ============================================================
|
||||
# System dependencies
|
||||
# ============================================================
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
wget curl ca-certificates gnupg \
|
||||
python3 python3-pip python3-venv \
|
||||
git build-essential gfortran \
|
||||
zlib1g-dev libpng-dev libjpeg-dev libfreetype6-dev \
|
||||
xvfb libgl1-mesa-glx libglfw3 \
|
||||
libxrandr2 libxinerama1 libxcursor1 libxi6 \
|
||||
libssl-dev libcurl4-openssl-dev libxml2-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# ============================================================
|
||||
# Julia 1.11 (matches environment/Manifest.toml julia_version = "1.11.3")
|
||||
# ============================================================
|
||||
RUN curl -fsSL https://julialang-s3.julialang.org/bin/linux/x64/1.11/julia-1.11.3-linux-x86_64.tar.gz \
|
||||
| tar -xz -C /usr/local --strip-components=1
|
||||
|
||||
# ============================================================
|
||||
# Python ML packages (CPU build)
|
||||
# ============================================================
|
||||
RUN pip3 install --no-cache-dir \
|
||||
torch torchvision --index-url https://download.pytorch.org/whl/cpu \
|
||||
&& pip3 install --no-cache-dir \
|
||||
Pillow numpy scikit-learn matplotlib pandas scipy psutil plotly
|
||||
|
||||
# ============================================================
|
||||
# Project code
|
||||
# ============================================================
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
# ============================================================
|
||||
# Julia environment
|
||||
# ============================================================
|
||||
RUN julia --project=/app/environment -e 'using Pkg; Pkg.resolve(); Pkg.instantiate(); Pkg.precompile()'
|
||||
|
||||
# ============================================================
|
||||
# Environment variables
|
||||
# ============================================================
|
||||
ENV PYTHONPATH="/app/scripts_python:${PYTHONPATH}"
|
||||
ENV DISPLAY=:99
|
||||
|
||||
LABEL maintainer="MSI Julia-Python CNN"
|
||||
LABEL description="Julia preprocessing + Python SimCLR - MSI CNN Pipeline (CPU)"
|
||||
|
||||
CMD ["/bin/bash"]
|
||||
Reference in New Issue
Block a user