1
0
mirror of https://github.com/jcwimer/openstack-exporter synced 2026-03-24 17:44:42 +00:00
Files
openstack-exporter/Dockerfile

14 lines
346 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 . .
ENV PYTHONUNBUFFERED=1
ENV PYTHONIOENCODING=UTF-8
CMD ["python", "/python/openstack_exporter.py"]