Create docker files for development environment
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -153,3 +153,4 @@ cython_debug/
|
||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||
.idea/
|
||||
|
||||
.bash_history
|
||||
|
||||
@@ -2,7 +2,7 @@ version: "2"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: pathogen/neptune
|
||||
image: pathogen/neptune:latest
|
||||
build: ./docker
|
||||
volumes:
|
||||
- ${PORTAINER_GIT_DIR}:/code
|
||||
|
||||
@@ -12,7 +12,7 @@ USER pathogen
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
WORKDIR /code
|
||||
COPY requirements.prod.txt /code/
|
||||
COPY requirements.dev.txt /code/
|
||||
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
|
||||
8
docker/requirements.dev.txt
Normal file
8
docker/requirements.dev.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
wheel
|
||||
django
|
||||
django-crispy-forms
|
||||
crispy-bulma
|
||||
opensearch-py
|
||||
stripe
|
||||
django-rest-framework
|
||||
numpy
|
||||
Reference in New Issue
Block a user