adding a working dockerfile
This commit is contained in:
parent
8f3e190c19
commit
7c8acd05ec
2 changed files with 18 additions and 0 deletions
9
Dockerfile
Normal file
9
Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM ubuntu:latest
|
||||
EXPOSE 8000
|
||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y python3 python3-pip
|
||||
COPY . /home/python
|
||||
WORKDIR /home/python
|
||||
RUN pip3 install -r requirements.txt
|
||||
RUN python3 manage.py migrate
|
||||
RUN python3 manage.py createsuperuser
|
||||
ENTRYPOINT python3 manage.py runserver 0.0.0.0:8000
|
|
@ -21,6 +21,15 @@ To start running the service use the following commands:
|
|||
|
||||
`./env/bin/python manage.py runserver`
|
||||
|
||||
|
||||
### Using the docker container
|
||||
```
|
||||
docker build -t get_together .
|
||||
docker run -p 8000:8000 get_together
|
||||
```
|
||||
|
||||
You can then connect to the container by going to localhost:8000
|
||||
|
||||
## Test Federation
|
||||
You can import sample event data into your "Searchable" table with this command:
|
||||
|
||||
|
|
Loading…
Reference in a new issue