1
0
Fork 0
mirror of https://github.com/ejwa/gitinspector.git synced 2025-03-26 02:01:27 +01:00

Add Dockerfile and Pipfile

This commit is contained in:
Jose M Vidal 2020-11-13 20:34:53 -05:00
parent b16b31b9ca
commit 5e78d1fef7
No known key found for this signature in database
GPG key ID: 6CCCEDE7C44757DB
2 changed files with 23 additions and 0 deletions

11
Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM python:3.7
# Set the working directory.
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY . /usr/src/app
ENV PYTHONPATH="/usr/src/app:${PYTHONPATH}"
RUN pip install pipenv
RUN pipenv lock --requirements > requirements.txt
RUN pip install -r requirements.txt
RUN chmod -R 777 /usr/src/app/gitinspector.py
ENTRYPOINT ["/usr/src/app/gitinspector.py"]

12
Pipfile Normal file
View file

@ -0,0 +1,12 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
python-shell = "*"
[requires]
python_version = "3.7"