2023-02-21 06:21:53 +00:00
|
|
|
FROM python:3.10-slim
|
|
|
|
LABEL maintainer="Websoft9<help@websoft9.com>"
|
|
|
|
|
|
|
|
# Create api directory
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
# Copy sw and install pip dependencies
|
|
|
|
COPY api ./api
|
2023-03-02 04:09:10 +00:00
|
|
|
COPY requirements.txt main.py ./
|
2023-02-21 06:21:53 +00:00
|
|
|
RUN pip install -r requirements.txt
|
2023-03-02 07:16:32 +00:00
|
|
|
RUN mkdir /hostpipe
|
2023-02-21 06:21:53 +00:00
|
|
|
|
|
|
|
# Starts our application
|
2023-03-02 06:56:29 +00:00
|
|
|
CMD ["uvicorn", "main:get_app", "--host", "0.0.0.0", "--port", "8000", "--log-level", "info"]
|
2023-02-21 06:21:53 +00:00
|
|
|
|
|
|
|
# Expose the port in which the application will be deployed
|
2023-03-02 06:56:29 +00:00
|
|
|
EXPOSE 8000
|