add docker files
This commit is contained in:
parent
e6fc1ed465
commit
517f067793
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM alpine:3.6
|
||||
RUN apk upgrade --update
|
||||
RUN apk add --update python3
|
||||
RUN apk add --update py3-pillow
|
||||
RUN pip3 install django==1.11.7 django-jinja django-rest-framework django-analytical
|
||||
ADD ["ofu_app", "/app"]
|
||||
WORKDIR /app
|
||||
EXPOSE 8080
|
||||
CMD ["python3", "manage.py", "runserver", "0.0.0.0:8080"]
|
||||
11
docker-compose.yml
Normal file
11
docker-compose.yml
Normal file
@ -0,0 +1,11 @@
|
||||
version: "2"
|
||||
|
||||
services:
|
||||
basta_server_web:
|
||||
image: docker.wiai.de/basta/server:0.1
|
||||
build: .
|
||||
ports:
|
||||
- "8080:8080"
|
||||
# basta_server_db:
|
||||
# image: postgres:alpine
|
||||
|
||||
Reference in New Issue
Block a user