Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile for dockerize application #195

Merged
merged 13 commits into from Jun 26, 2020
1 change: 1 addition & 0 deletions .dockerignore
@@ -0,0 +1 @@
Dockerfile
alexm marked this conversation as resolved.
Show resolved Hide resolved
7 changes: 7 additions & 0 deletions Dockerfile
@@ -0,0 +1,7 @@
FROM python:2.7

WORKDIR /usr/src/app
RUN echo "PATH=$PWD/local/bin:\$PATH" >> ~/.bashrc
alexm marked this conversation as resolved.
Show resolved Hide resolved
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
alexm marked this conversation as resolved.
Show resolved Hide resolved
CMD [ "python", "mailtoticket.py" ]
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -34,6 +34,14 @@ echo "PATH=$PWD/local/bin:\$PATH" >> ~/.bashrc
source ~/.bashrc
pip install -r requirements.txt
```
Dockerització (pilot)
---------------------

Per dockeritzar l'aplicació nomes caldrá configurà adecuadament el fitxer de propietats de la instància i construir el docker
alexm marked this conversation as resolved.
Show resolved Hide resolved
```
docker build . -t mailtoticket
alexm marked this conversation as resolved.
Show resolved Hide resolved
```


Configuració de la bústia
-------------------------
Expand Down