Skip to content

Commit 7bd3e7f

Browse files
committed
Make a smaller docker file
1 parent 8eb51ae commit 7bd3e7f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ FROM ubuntu:22.04
22

33
RUN apt-get update && apt-get upgrade -y && apt-get install python3-pip tini -y && apt-get clean
44

5-
COPY . /opt/os-capacity
6-
RUN pip install -U -e /opt/os-capacity
5+
COPY ./requirements.txt /opt/os-capacity/requirements.txt
6+
RUN pip install -U -r /opt/os-capacity/requirements.txt
77

8-
ENTRYPOINT ["tini", "-g", "--"]
9-
CMD ["python3", "/opt/os-capacity/os_capacity/prometheus.py"]
8+
COPY ./os_capacity/prometheus.py /opt/os-capacity/prometheus.py
9+
ENTRYPOINT ["tini", "--"]
10+
CMD ["python3", "/opt/os-capacity/prometheus.py"]

0 commit comments

Comments
 (0)