File tree Expand file tree Collapse file tree 5 files changed +371
-371
lines changed Expand file tree Collapse file tree 5 files changed +371
-371
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 && \
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 passwordless 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
23- # Set up the Python development environment
6+ # Set up the global Python development environment
247WORKDIR /app
258COPY Pipfile Pipfile.lock ./
269RUN python -m pip install -U pip pipenv && \
Original file line number Diff line number Diff line change 1313 "FLASK_DEBUG:" : " True" ,
1414 "FLASK_APP" : " wsgi:app" ,
1515 "PORT" : " 8080" ,
16- "GUNICORN_BIND" : " 0.0.0.0:8080"
16+ "GUNICORN_BIND" : " 0.0.0.0:8080" ,
17+ "PIPENV_VENV_IN_PROJECT" : " 1"
1718 },
1819 "customizations" : {
1920 "vscode" : {
3738 "python.testing.pytestArgs" : [
3839 " tests"
3940 ],
41+ "python.analysis.typeCheckingMode" : " standard" ,
4042 "files.exclude" : {
4143 "**/.git" : true ,
4244 "**/.DS_Store" : true ,
Original file line number Diff line number Diff line change @@ -8,19 +8,19 @@ flask = "==3.1.1"
88redis = " ==5.2.1"
99flask-redis = " ==0.4.0"
1010retry2 = " ==0.9.5"
11- python-dotenv = " ==1.0.1 "
12- gunicorn = " = =23.0.0"
11+ python-dotenv = " ~=1.1.0 "
12+ gunicorn = " ~ =23.0.0"
1313
1414[dev-packages ]
15- honcho = " ~=2.0.0"
16- pylint = " ~=3.3.4"
17- flake8 = " ~=7.1.1"
1815black = " ~=25.1.0"
19- pytest = " ~=8.3.4"
16+ coverage = " ~=7.8.2"
17+ flake8 = " ~=7.2.0"
18+ pylint = " ~=3.3.7"
19+ pytest = " ~=8.3.5"
2020pytest-pspec = " ~=0.0.4"
21- pytest-cov = " ~=6.0.0 "
21+ pytest-cov = " ~=6.1.1 "
2222factory-boy = " ~=3.3.3"
23- coverage = " ~=7.6.12 "
23+ honcho = " ~=2.0.0 "
2424httpie = " ~=3.2.4"
2525
2626[requires ]
You can’t perform that action at this time.
0 commit comments