From ff34d21109b1b31110699bf717c9e44ff6a64d28 Mon Sep 17 00:00:00 2001 From: John Rofrano Date: Tue, 21 Oct 2025 21:39:28 -0400 Subject: [PATCH] Switched to devops base image --- .devcontainer/Dockerfile | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 580c3ce..b2a6011 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,24 +1,7 @@ # Image for a Python 3 development environment -FROM python:3.11-slim +FROM quay.io/rofrano/nyu-devops-base:su25 -# Add any tools that are needed beyond Python 3.11 -RUN apt-get update && \ - apt-get install -y sudo vim make git zip tree curl wget jq procps net-tools iputils-ping && \ - apt-get autoremove -y && \ - apt-get clean -y - -# Create a user for development ARG USERNAME=vscode -ARG USER_UID=1000 -ARG USER_GID=$USER_UID - -# Create the user with password-less sudo privileges -RUN groupadd --gid $USER_GID $USERNAME \ - && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME -s /bin/bash \ - && usermod -aG sudo $USERNAME \ - && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ - && chmod 0440 /etc/sudoers.d/$USERNAME \ - && chown -R $USERNAME:$USERNAME /home/$USERNAME # Set up the Python development environment WORKDIR /app @@ -29,9 +12,6 @@ RUN python -m pip install --upgrade pip pipenv && \ ENV PORT=8080 EXPOSE $PORT -ENV PORT 8080 -EXPOSE $PORT - # Enable color terminal for docker exec bash ENV TERM=xterm-256color