Skip to content

Commit 9f3a074

Browse files
committed
dockerise chatbot
1 parent 6014c33 commit 9f3a074

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM python:3
2+
3+
ENV PYTHONUNBUFFERED 1
4+
RUN mkdir /code
5+
WORKDIR /code
6+
COPY . /code/
7+
RUN pip install -r requirements.txt
8+
RUN python manage.py migrate
9+
RUN python manage.py collectstatic

docker-compose.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: '3'
2+
3+
services:
4+
web:
5+
build: .
6+
command: python manage.py runserver 0.0.0.0:8000
7+
volumes:
8+
- .:/code
9+
ports:
10+
- 127.0.0.1:9995:8000

0 commit comments

Comments
 (0)