Skip to content

Commit bb7080a

Browse files
author
Dennis Schwartz
committed
Added Docker setup for local development.
1 parent b0a0ec2 commit bb7080a

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM python:2.7
2+
3+
COPY . .
4+
5+
RUN echo \
6+
&& pip install -r requirements.txt

docker-compose.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: '2'
2+
services:
3+
biojs-backend:
4+
command: /bin/sh -c "pip install -r requirements.txt && python manage.py migrate && python manage.py runserver 0.0.0.0:8000 --verbosity 3"
5+
image: biojs-backend-base
6+
working_dir: /opt
7+
volumes:
8+
- .:/opt
9+
ports:
10+
- 8000:8000
11+
networks:
12+
- service
13+
14+
networks:
15+
service:

0 commit comments

Comments
 (0)