Skip to content

Commit 85bc5f1

Browse files
committed
switch from pip-tools to pipenv
1 parent d30ebfa commit 85bc5f1

File tree

6 files changed

+240
-38
lines changed

6 files changed

+240
-38
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ FROM docker.io/debian:bullseye-slim
44
RUN apt-get update && \
55
apt-get install --no-install-recommends -y g++ wget uwsgi-plugin-python3 python3 python3-pip node-uglify make git \
66
python3-ldap3 python3-pkg-resources gettext gcc python3-dev python3-setuptools libldap2-dev \
7-
libsasl2-dev nginx
7+
libsasl2-dev nginx pipenv
88

99
# add requirements file
1010
WORKDIR /app/src
11-
COPY src/requirements.txt /app/src/requirements.txt
11+
COPY Pipfile Pipfile.lock /app/src/
1212

1313
# install python dependencies
14-
RUN pip3 install -r /app/src/requirements.txt
14+
RUN pipenv install --system --ignore-pipfile
1515
RUN pip3 install sentry-sdk uwsgi django-ldapdb django-auth-ldap
1616

1717
# clean container

Pipfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
django = "~=2.2"
8+
django-configurations = "~=2.2"
9+
django-friendly-tag-loader = "~=1.3"
10+
django-registration = "~=3.2"
11+
django-widget-tweaks = "~=1.4"
12+
djangorestframework = "~=3.12"
13+
fasteners = "~=0.16"
14+
fs = "~=2.4"
15+
pillow = "~=8.2"
16+
psycopg2-binary = "~=2.9"
17+
18+
[dev-packages]
19+
20+
[requires]
21+
python_version = "3"

Pipfile.lock

Lines changed: 215 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ If ImageTagger is running in a development environment, no export is necessary.
7979
```shell
8080
git checkout v…
8181
cd imagetagger
82-
pip3 install -r requirements.txt
82+
pipenv sync
8383
```
8484

8585
2. #### Setup a database server

src/requirements.in

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/requirements.txt

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)