]> git.parisson.com Git - teleforma.git/commitdiff
Added requirements-dev.txt which is processed if build is called with dev=1 parameter
authorGael Le Mignot <gael@pilotsystems.net>
Mon, 31 May 2021 13:16:58 +0000 (15:16 +0200)
committerGael Le Mignot <gael@pilotsystems.net>
Mon, 31 May 2021 13:16:58 +0000 (15:16 +0200)
Dockerfile
docker-compose.yml
requirements-dev.txt [new file with mode: 0644]

index cd8967ebd1d77a091d57940f6beda638bdbf05bb..a03d986726a2eb41662d9425d89bbea6288d329d 100644 (file)
@@ -44,6 +44,11 @@ ENV LC_ALL fr_FR.UTF-8
 COPY requirements.txt /srv
 RUN pip3 install -r requirements.txt
 
+COPY requirements-dev.txt /srv
+ARG dev=0
+RUN echo "${dev}"
+RUN if [ "${dev}" = "1" ]; then pip3 install -r requirements-dev.txt; fi
+
 COPY lib /srv/lib
 COPY bin/build/local/setup_lib.sh /srv
 RUN /srv/setup_lib.sh
index b6a664e5743623f3799b68f618ae43b5f476f686..1286bc5d866bb6ebd5a4b118704fe4513d94c501 100644 (file)
@@ -2,7 +2,10 @@ version: '3'
 
 services:
   app:
-    build: .
+    build:
+      context: .
+      args:
+        dev: 1
     command: /bin/sh /srv/app/bin/app.sh --runserver
     volumes:
       - ./app/:/srv/app
diff --git a/requirements-dev.txt b/requirements-dev.txt
new file mode 100644 (file)
index 0000000..e496698
--- /dev/null
@@ -0,0 +1 @@
+ipdb==0.13.8