websoft9/appmanage/Dockerfile
2023-03-25 21:13:36 +08:00

19 lines
475 B
Docker

FROM python:3.10-slim
LABEL maintainer="Websoft9<help@websoft9.com>"
# Create api Directory
WORKDIR /usr/src/app
# Copy sources and install pip dependencies
COPY api ./api
COPY static ./static
COPY requirements.txt main.py ./
RUN pip install -r requirements.txt
RUN mkdir /data
# Starts our application
CMD ["uvicorn", "main:get_app", "--host", "0.0.0.0", "--port", "5000", "--log-level", "info"]
# Expose the port in which the application will be deployed
EXPOSE 5000