websoft9/appmanage/Dockerfile
2023-05-05 11:31:13 +08:00

23 lines
579 B
Docker

FROM python:3.10-slim
LABEL maintainer="Websoft9<help@websoft9.com>"
# Create API Directory
WORKDIR /usr/src/app
# Copy source and Install pip dependencies
COPY api ./api
COPY static ./static
COPY requirements.txt main.py ./
RUN apt update
# Install Supervisords
RUN apt install -y supervisor
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY config/cmd.sh /cmd.sh
RUN chmod +x /etc/supervisor/conf.d/supervisord.conf /cmd.sh
RUN pip install -r requirements.txt
RUN mkdir /data
# Expose the port in which the Application will be deployed
EXPOSE 5000