Initial commit

This commit is contained in:
2025-10-18 22:03:55 +08:00
commit 0c3fe173b6
11 changed files with 2467 additions and 0 deletions

27
Dockerfile Normal file
View File

@@ -0,0 +1,27 @@
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
# Create a non-root dev user
ARG USER=dev
ARG UID=1000
ARG GID=1000
RUN groupadd -g ${GID} ${USER} \
&& useradd -m -u ${UID} -g ${GID} -s /bin/bash ${USER}
# System packages commonly needed (OpenCV runtime deps, build tools, etc.)
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
git wget curl ca-certificates \
build-essential pkg-config \
libgl1 libglib2.0-0 ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Basic Python tooling
RUN python -m pip install --upgrade pip wheel setuptools
# Workspace & permissions
WORKDIR /workspace
RUN chown -R ${UID}:${GID} /workspace
USER ${USER}
# (Optional) expose Jupyter/TensorBoard if you use them
# EXPOSE 8888 6006