add docker files
This commit is contained in:
parent
bb70914066
commit
ca3a8c4639
8
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
version: "3.9"
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- .:/home
|
14
dockerfile
Normal file
14
dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
FROM python
|
||||
|
||||
WORKDIR /home
|
||||
|
||||
RUN python3 -m pip install --upgrade pip
|
||||
RUN pip install wheel
|
||||
|
||||
COPY . .
|
||||
RUN pip install -r requirements.txt
|
||||
RUN python manage.py migrate
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT [ "python", "manage.py", "runserver", "0.0.0.0:8080" ]
|
Loading…
Reference in a new issue