mirror of
https://github.com/jcwimer/openstack-exporter
synced 2026-03-24 17:44:42 +00:00
11 lines
292 B
Docker
11 lines
292 B
Docker
FROM python:3.8
|
|
RUN pip install pipenv
|
|
RUN mkdir /python
|
|
### CACHE PIP DEPENDENCIES
|
|
COPY Pipfile* /tmp/
|
|
RUN cd /tmp && pipenv lock --requirements > requirements.txt
|
|
RUN pip install -r /tmp/requirements.txt
|
|
###
|
|
WORKDIR /python
|
|
COPY . .
|
|
CMD ["python", "/python/openstack_exporter.py"] |