Files
my_projects/python/redfish-api/Dockerfile

14 lines
216 B
Docker

FROM python:3
EXPOSE 8000
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY redfish_exporter.py .
COPY config.yaml .
CMD [ "python", "./redfish_exporter.py" ]