websoft9/appmanage/Dockerfile

19 lines
470 B
Docker
Raw Normal View History

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