mirror of
https://gitlab.com/fabinfra/fabaccess/prometheus-exporter.git
synced 2025-01-22 01:55:10 +01:00
Edit Dockerfile
This commit is contained in:
parent
b84979862e
commit
7469a62eff
14
Dockerfile
14
Dockerfile
@ -1,9 +1,13 @@
|
|||||||
FROM ubuntu:22.04
|
FROM python:3.10.4-bullseye
|
||||||
RUN apt-get update && apt-get upgrade -y
|
|
||||||
RUN apt-get install -yqq --no-install-recommends python3 python3-pip
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN apt-get update -y
|
||||||
|
RUN apt-get upgrade -y
|
||||||
|
RUN apt-get install -y cmake capnproto clang gcc build-essential
|
||||||
RUN pip3 install -r requirements.txt
|
RUN pip3 install -r requirements.txt
|
||||||
RUN chmod u+x main.py
|
|
||||||
ENTRYPOINT ["/app/main.py"]
|
VOLUME /app/config
|
||||||
|
CMD [ "python3", "main.py"]
|
||||||
|
EXPOSE 9877
|
Loading…
x
Reference in New Issue
Block a user