Skip to content

Commit 3f08aaa

Browse files
Merge pull request #476 from fasrc/cp_build_improvements
image build improvements
2 parents 181d218 + b8ba6b9 commit 3f08aaa

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ LABEL org.opencontainers.image.description="fasrc coldfront application"
1212

1313
RUN apt-get update \
1414
&& apt-get install -y --no-install-recommends \
15-
&& apt-get install -y redis redis-server vim \
16-
&& apt-get install -y libsasl2-dev libldap2-dev libssl-dev \
15+
redis-server \
16+
vim \
17+
libsasl2-dev \
18+
libldap2-dev \
19+
libssl-dev \
1720
&& rm -rf /var/lib/apt/lists/*
1821
RUN mkdir ~/.ssh && echo "Host git*\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
1922

@@ -26,14 +29,13 @@ COPY etc/ipython_init.py ${IPYTHON_STARTUP}
2629

2730

2831
RUN pip install --upgrade pip && \
29-
pip install vastpy && \
3032
pip install -r requirements.txt
3133

32-
COPY . .
34+
RUN pip install django-prometheus gunicorn
3335

3436
RUN if [ "${BUILD_ENV}" = "dev" ]; then pip install django-redis django-debug-toolbar; fi
3537

36-
RUN pip install django-prometheus gunicorn
38+
COPY . .
3739

3840
ENV PYTHONPATH /usr/src/app:/usr/src/app/ifxreport:/usr/src/app/ifxbilling:/usr/src/app/fiine.client:/usr/src/app/ifxurls:/usr/src/app/nanites.client:/usr/src/app/ifxuser:/usr/src/app/ifxmail.client:/usr/src/app/ifxec
3941

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ django-crispy-forms==2.1
1212
django-environ==0.11.2
1313
django-model-utils==4.4.0
1414
django-picklefield==3.1
15-
django-q2==1.5.1
15+
django-q2==1.7.6
1616
django-settings-export==1.2.1
1717
django-simple-history==3.5.0
1818
django-split-settings==1.3.0
@@ -54,19 +54,19 @@ django-mathfilters==1.0.0
5454
django-tables2==2.3.4
5555
djangorestframework==3.15.2
5656
djangorestframework-datatables==0.7.0
57-
ipython==7.16.3
57+
ipython==8.39.0
5858
isilon-sdk==0.7.0
5959
jinja2
6060
knox
6161
ldap3
6262
logging_tree==1.9
6363
mysqlclient==2.2.0
6464
natural-keys
65-
python-dateutil
6665
python-json-logger
6766
pandas==2.2.1
6867
reportlab==4.0.5
6968
xhtml2pdf==0.2.15
7069
XlsxWriter
7170
git+https://github.com/fasrc/slurmrest_python_sdk.git
7271
git+https://github.com/fasrc/sftocf.git
72+
vastpy

0 commit comments

Comments
 (0)