mirror of
https://github.com/michivonah/bbzw-horizon.git
synced 2025-12-22 17:16:27 +01:00
adjust Dockerfile + add grafana
This commit is contained in:
parent
6faba4a759
commit
49b01c269a
2 changed files with 15 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ WORKDIR /app/
|
|||
COPY requirements.txt .
|
||||
|
||||
# Set enviromental variables
|
||||
ENV DB_CONNECTION_STRING ep-plannerDB
|
||||
ENV DB_CONNECTION_STRING=ep-plannerDB
|
||||
|
||||
# Install needed packages
|
||||
RUN pip3 install --upgrade pip
|
||||
|
|
@ -20,6 +20,9 @@ EXPOSE 8080
|
|||
|
||||
# Imort script
|
||||
COPY webservice.py .
|
||||
COPY crypto.py .
|
||||
COPY dbfunctions.py .
|
||||
COPY models.py .
|
||||
|
||||
# Start app
|
||||
CMD ["uvicorn", "webservice:app", "--host", "0.0.0.0", "--port", "8080"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue