mirror of
https://github.com/michivonah/bbzw-horizon.git
synced 2025-12-23 01:16:28 +01:00
add existing files
This commit is contained in:
parent
75653e9c5b
commit
a38e1678a6
7 changed files with 280 additions and 0 deletions
25
webservice/Dockerfile.txt
Normal file
25
webservice/Dockerfile.txt
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
FROM python:3.12
|
||||
|
||||
# Create directory
|
||||
RUN mkdir app
|
||||
WORKDIR /app/
|
||||
|
||||
# Copy files
|
||||
COPY requirements.txt .
|
||||
|
||||
# Set enviromental variables
|
||||
ENV DB_CONNECTION_STRING ep-plannerDB
|
||||
|
||||
# Install needed packages
|
||||
RUN pip3 install --upgrade pip
|
||||
RUN pip3 install pipenv
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Expose port
|
||||
EXPOSE 8080
|
||||
|
||||
# Imort script
|
||||
COPY webservice.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