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
2 changes: 2 additions & 0 deletions .dockerignore
@@ -0,0 +1,2 @@
Dockerfile
alexm marked this conversation as resolved.
Show resolved Hide resolved
local
7 changes: 7 additions & 0 deletions Dockerfile
@@ -0,0 +1,7 @@
FROM python:2.7

WORKDIR /usr/src/app
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -yy libsasl2-dev libldap2-dev
RUN pip install --no-cache-dir -r requirements.txt
alexm marked this conversation as resolved.
Show resolved Hide resolved
COPY . .
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)
---------------------

```
docker build . -t mailtoticket
alexm marked this conversation as resolved.
Show resolved Hide resolved
cat missatge.txt | docker run -v /path/to/settings_default.py:/usr/src/app/settings_default.py:ro --rm -it mailtoticket
```


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