Skip to content
Snippets Groups Projects
Commit 6e02fd10 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Use dev image for development

parent 427b8f1a
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,10 @@ RUN python -m venv /venv \ ...@@ -38,6 +38,10 @@ RUN python -m venv /venv \
&& . /venv/bin/activate \ && . /venv/bin/activate \
&& pip install --no-cache-dir -r /requirements.txt && pip install --no-cache-dir -r /requirements.txt
ARG CSENTRY_BUILD
COPY requirements-dev.txt /requirements-dev.txt
RUN if [ "$CSENTRY_BUILD" = "DEV" ] ; then /venv/bin/pip install --no-cache-dir -r /requirements-dev.txt ; fi
FROM base FROM base
RUN groupadd -r -g 1000 csi \ RUN groupadd -r -g 1000 csi \
......
version: '2' version: '3'
services: services:
web: web:
build: . build:
context: .
args:
CSENTRY_BUILD: DEV
environment: environment:
LOCAL_SETTINGS: /app/settings.cfg LOCAL_SETTINGS: /app/settings.cfg
FLASK_APP: /app/wsgi.py FLASK_APP: /app/wsgi.py
......
version: '2' version: '3'
services: services:
web: web:
image: registry.esss.lu.se/ics-infrastructure/csentry:master image: registry.esss.lu.se/ics-infrastructure/csentry:master
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment