Initial commit
This commit is contained in:
27
Dockerfile
Normal file
27
Dockerfile
Normal 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
|
Reference in New Issue
Block a user