fix bug in initial db creation caused by prometheus lib rtying to access tables at load time
This commit is contained in:
parent
6b0def543c
commit
d80fb60afd
8 changed files with 41 additions and 33 deletions
|
@ -1,11 +1,11 @@
|
|||
FROM python:3.11-bookworm
|
||||
FROM python:3.11-slim-bookworm
|
||||
LABEL authors="lagertonne"
|
||||
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
RUN mkdir /code
|
||||
WORKDIR /code
|
||||
COPY requirements.prod.txt /code/
|
||||
RUN apt update && apt install -y mariadb-client
|
||||
RUN pip install -r requirements.prod.txt
|
||||
RUN apt update && apt install -y pkg-config mariadb-client default-libmysqlclient-dev build-essential
|
||||
RUN pip install mysqlclient
|
||||
COPY requirements.prod.txt /code/
|
||||
RUN pip install -r requirements.prod.txt
|
||||
COPY .. /code/
|
Loading…
Add table
Add a link
Reference in a new issue