websoft9/docker/w9apphub/Dockerfile
2023-09-18 10:52:08 +08:00

26 lines
692 B
Docker

FROM python:3.10-slim
LABEL maintainer="Websoft9<help@websoft9.com>"
LABEL version="0.0.1"
# Create API Directory
WORKDIR /usr
# Copy source and install pip dpendencies
COPY ../../appmanage_new/src /usr
COPY ../../appmanage_new/requirements.txt /usr
RUN apt update
# Install supervisord
RUN apt install -y supervisor iproute2
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
RUN mkdir /usr/src/app/config
COPY config/settings.conf /usr/src/app/config/
# Expose the port in which the application will be deployed
EXPOSE 5000