Skip to content

Commit

Permalink
create docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
sajib1066 committed Nov 21, 2020
1 parent 2c301d3 commit 96bbdd2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.8

WORKDIR /app

COPY requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt

COPY . /app
EXPOSE 8000
CMD python manage.py runserver 0.0.0.0:8000
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '3'
services:
web:
build: .
ports:
- "8000:8000"
volumes:
- .:/app

0 comments on commit 96bbdd2

Please sign in to comment.