Skip to content

Commit 6b25154

Browse files
authored
Merge pull request #37 from nyu-devops/fa25-updates
Switched to devops base image
2 parents 0685bdb + ff34d21 commit 6b25154

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
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
114
ARG 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
247
WORKDIR /app
@@ -29,9 +12,6 @@ RUN python -m pip install --upgrade pip pipenv && \
2912
ENV PORT=8080
3013
EXPOSE $PORT
3114

32-
ENV PORT 8080
33-
EXPOSE $PORT
34-
3515
# Enable color terminal for docker exec bash
3616
ENV TERM=xterm-256color
3717

0 commit comments

Comments
 (0)