2023-02-21 06:21:53 +00:00
|
|
|
FROM python:3.10-slim
|
|
|
|
LABEL maintainer="Websoft9<help@websoft9.com>"
|
2023-03-24 07:32:38 +00:00
|
|
|
|
2023-03-27 01:13:09 +00:00
|
|
|
# Create api directory
|
2023-02-21 06:21:53 +00:00
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
2023-03-27 01:56:58 +00:00
|
|
|
# Copy source and install pip dependencies
|
2023-03-24 04:44:01 +00:00
|
|
|
COPY api ./api
|
|
|
|
COPY static ./static
|
|
|
|
COPY requirements.txt main.py ./
|
2023-02-21 06:21:53 +00:00
|
|
|
RUN pip install -r requirements.txt
|
2023-03-02 09:27:43 +00:00
|
|
|
RUN mkdir /data
|
2023-02-21 06:21:53 +00:00
|
|
|
|
2023-03-30 05:42:12 +00:00
|
|
|
# Start our application
|
2023-03-23 06:50:22 +00:00
|
|
|
CMD ["uvicorn", "main:get_app", "--host", "0.0.0.0", "--port", "5000", "--log-level", "info"]
|
2023-02-21 06:21:53 +00:00
|
|
|
|
|
|
|
# Expose the port in which the application will be deployed
|
2023-03-23 08:05:06 +00:00
|
|
|
EXPOSE 5000
|
2023-04-01 04:25:09 +00:00
|
|
|
|