Create docker files for development environment
This commit is contained in:
parent
909c5de4f9
commit
9bb580f8dd
|
@ -153,3 +153,4 @@ cython_debug/
|
||||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
|
.bash_history
|
||||||
|
|
|
@ -2,7 +2,7 @@ version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: pathogen/neptune
|
image: pathogen/neptune:latest
|
||||||
build: ./docker
|
build: ./docker
|
||||||
volumes:
|
volumes:
|
||||||
- ${PORTAINER_GIT_DIR}:/code
|
- ${PORTAINER_GIT_DIR}:/code
|
||||||
|
|
|
@ -12,7 +12,7 @@ USER pathogen
|
||||||
ENV PYTHONDONTWRITEBYTECODE=1
|
ENV PYTHONDONTWRITEBYTECODE=1
|
||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
COPY requirements.prod.txt /code/
|
COPY requirements.dev.txt /code/
|
||||||
RUN python -m venv /venv
|
RUN python -m venv /venv
|
||||||
RUN . /venv/bin/activate && pip install -r requirements.prod.txt
|
RUN . /venv/bin/activate && pip install -r requirements.dev.txt
|
||||||
CMD . /venv/bin/activate && exec python manage.py runserver 0.0.0.0:8000
|
CMD . /venv/bin/activate && exec python manage.py runserver 0.0.0.0:8000
|
|
@ -0,0 +1,8 @@
|
||||||
|
wheel
|
||||||
|
django
|
||||||
|
django-crispy-forms
|
||||||
|
crispy-bulma
|
||||||
|
opensearch-py
|
||||||
|
stripe
|
||||||
|
django-rest-framework
|
||||||
|
numpy
|
Loading…
Reference in New Issue