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 1
1
# Image for a Python 3 development environment
2
- FROM python:3.11-slim
2
+ FROM quay.io/rofrano/nyu-devops-base:su25
3
3
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
11
4
ARG 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
22
5
23
- # Set up the Python development environment
6
+ # Set up the global Python development environment
24
7
WORKDIR /app
25
8
COPY Pipfile Pipfile.lock ./
26
9
RUN python -m pip install -U pip pipenv && \
Original file line number Diff line number Diff line change 13
13
"FLASK_DEBUG:" : " True" ,
14
14
"FLASK_APP" : " wsgi:app" ,
15
15
"PORT" : " 8080" ,
16
- "GUNICORN_BIND" : " 0.0.0.0:8080"
16
+ "GUNICORN_BIND" : " 0.0.0.0:8080" ,
17
+ "PIPENV_VENV_IN_PROJECT" : " 1"
17
18
},
18
19
"customizations" : {
19
20
"vscode" : {
37
38
"python.testing.pytestArgs" : [
38
39
" tests"
39
40
],
41
+ "python.analysis.typeCheckingMode" : " standard" ,
40
42
"files.exclude" : {
41
43
"**/.git" : true ,
42
44
"**/.DS_Store" : true ,
Original file line number Diff line number Diff line change @@ -8,19 +8,19 @@ flask = "==3.1.1"
8
8
redis = " ==5.2.1"
9
9
flask-redis = " ==0.4.0"
10
10
retry2 = " ==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"
13
13
14
14
[dev-packages ]
15
- honcho = " ~=2.0.0"
16
- pylint = " ~=3.3.4"
17
- flake8 = " ~=7.1.1"
18
15
black = " ~=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"
20
20
pytest-pspec = " ~=0.0.4"
21
- pytest-cov = " ~=6.0.0 "
21
+ pytest-cov = " ~=6.1.1 "
22
22
factory-boy = " ~=3.3.3"
23
- coverage = " ~=7.6.12 "
23
+ honcho = " ~=2.0.0 "
24
24
httpie = " ~=3.2.4"
25
25
26
26
[requires ]
You can’t perform that action at this time.
0 commit comments