diff --git a/docker-compose/prod.yml b/docker-compose/prod.yml new file mode 100644 index 0000000..31e4ace --- /dev/null +++ b/docker-compose/prod.yml @@ -0,0 +1,4 @@ +# python-facebook-chatbot: Docker Compose +# https://docs.docker.com/compose/ +# +# Usage: docker-compose prod up diff --git a/docker-compose/stage.yml b/docker-compose/stage.yml new file mode 100644 index 0000000..18e23d3 --- /dev/null +++ b/docker-compose/stage.yml @@ -0,0 +1,4 @@ +# python-facebook-chatbot: Docker Compose +# https://docs.docker.com/compose/ +# +# Usage: docker-compose stage up diff --git a/docker-compose/test.yml b/docker-compose/test.yml new file mode 100644 index 0000000..ba642d4 --- /dev/null +++ b/docker-compose/test.yml @@ -0,0 +1,13 @@ +# python-facebook-chatbot: Docker Compose +# https://docs.docker.com/compose/ +# +# Usage: test up +version: '3' +services: + + app: + environment: &environment + - APP_NAME=python-facebook-chatbot + build: + context: . + dockerfile: docker/app-test/Dockerfile diff --git a/docker/app-test/Dockerfile b/docker/app-test/Dockerfile new file mode 100644 index 0000000..d14f9a8 --- /dev/null +++ b/docker/app-test/Dockerfile @@ -0,0 +1,12 @@ +FROM python:3.6.0 + +MAINTAINER Luis Mayta <@slovacus> + +COPY ./requirements/ /usr/src/requirements/ +COPY ./requirements.txt /usr/src/requirements.txt + +# set working directory to /app/ +WORKDIR /usr/src + +# install python dependencies +RUN pip install -r /usr/src/requirements/test.txt diff --git a/docker/app/Dockerfile b/docker/app/Dockerfile new file mode 100644 index 0000000..8a309c7 --- /dev/null +++ b/docker/app/Dockerfile @@ -0,0 +1,12 @@ +FROM python:3.6.0 + +MAINTAINER Luis Mayta <@slovacus> + +COPY ./requirements/ /usr/src/requirements/ +COPY ./requirements.txt /usr/src/requirements.txt + +# set working directory to /app/ +WORKDIR /usr/src + +# install python dependencies +RUN pip install -r /usr/src/requirements/dev.txt diff --git a/docker/docs/Dockerfile b/docker/docs/Dockerfile new file mode 100644 index 0000000..c7b6b9e --- /dev/null +++ b/docker/docs/Dockerfile @@ -0,0 +1,14 @@ +FROM labpositiva/latex:3.6.1 +MAINTAINER Luis Mayta <@slovacus> + +COPY ./requirements/ /app/requirements/ +COPY ./requirements.txt /app/requirements.txt + +RUN apt-get update -y \ + && apt-get install -y build-essential + +# set working directory to /app/ +WORKDIR /app + +# Install sphinx dependences +RUN pip install -r /app/requirements/docs.txt \ No newline at end of file