Create docker files for development environment

This commit is contained in:
Mark Veidemanis 2022-07-29 22:22:22 +01:00
parent 909c5de4f9
commit 9bb580f8dd
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
4 changed files with 12 additions and 3 deletions

1
.gitignore vendored
View File

@ -153,3 +153,4 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/
.bash_history

View File

@ -2,7 +2,7 @@ version: "2"
services:
app:
image: pathogen/neptune
image: pathogen/neptune:latest
build: ./docker
volumes:
- ${PORTAINER_GIT_DIR}:/code

View File

@ -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

View File

@ -0,0 +1,8 @@
wheel
django
django-crispy-forms
crispy-bulma
opensearch-py
stripe
django-rest-framework
numpy