Skip to content

Commit

Permalink
chore: settings docker and docker-compose (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed Mar 11, 2021
1 parent f379639 commit 81b1188
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-compose/prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# python-facebook-chatbot: Docker Compose
# https://docs.docker.com/compose/
#
# Usage: docker-compose prod up
4 changes: 4 additions & 0 deletions docker-compose/stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# python-facebook-chatbot: Docker Compose
# https://docs.docker.com/compose/
#
# Usage: docker-compose stage up
13 changes: 13 additions & 0 deletions docker-compose/test.yml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions docker/app-test/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions docker/app/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions docker/docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 81b1188

Please sign in to comment.