diff --git a/Dockerfile b/Dockerfile index 3ccc1d1..05a13ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ -FROM frolvlad/alpine-python2 - +FROM rcarmo/alpine-python:2.7 RUN apk --update add \ bash \ cmake \ @@ -8,12 +7,13 @@ RUN apk --update add \ g++ \ zlib-dev +ONBUILD COPY . /docker +ONBUILD RUN pip install -r /docker/requirements/dev.txt + # Define working directory. -WORKDIR /docker/ +WORKDIR /docker -# Install. -# RUN \ -# make install +EXPOSE 5000 # Define default command. -CMD ["bash"] +CMD gunicorn app:app -b :5000 diff --git a/docker-compose.yml b/docker-compose.yml index ebc64ab..c6353e6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,9 @@ version: '2' services: chatbot: build: . - image: frolvlad/alpine-python2 + image: rcarmo/alpine-python:2.7 + ports: + - "5000:5000" volumes: - ./:/docker/ restart: always