File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change 11# Image for a Python 3 development environment
2- FROM python:3.11-slim
2+ FROM quay.io/rofrano/nyu-devops-base:su25
33
4- # Add any tools that are needed beyond Python 3.11
5- RUN apt-get update && \
6- apt-get install -y sudo vim make git zip tree curl wget jq procps net-tools iputils-ping && \
7- apt-get autoremove -y && \
8- apt-get clean -y
9-
10- # Create a user for development
114ARG USERNAME=vscode
12- ARG USER_UID=1000
13- ARG USER_GID=$USER_UID
14-
15- # Create the user with password-less sudo privileges
16- RUN groupadd --gid $USER_GID $USERNAME \
17- && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME -s /bin/bash \
18- && usermod -aG sudo $USERNAME \
19- && echo $USERNAME ALL=\( root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
20- && chmod 0440 /etc/sudoers.d/$USERNAME \
21- && chown -R $USERNAME:$USERNAME /home/$USERNAME
225
236# Set up the Python development environment
247WORKDIR /app
@@ -29,9 +12,6 @@ RUN python -m pip install --upgrade pip pipenv && \
2912ENV PORT=8080
3013EXPOSE $PORT
3114
32- ENV PORT 8080
33- EXPOSE $PORT
34-
3515# Enable color terminal for docker exec bash
3616ENV TERM=xterm-256color
3717
You can’t perform that action at this time.
0 commit comments