websoft9/appmanage/Dockerfile

23 lines
578 B
Text
Raw Normal View History

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-05-05 03:03:27 +00:00
# Create API Directory
2023-02-21 06:21:53 +00:00
WORKDIR /usr/src/app
2023-05-11 02:11:10 +00:00
# Copy source and Install pip dpendencies
2023-03-24 04:44:01 +00:00
COPY api ./api
COPY static ./static
COPY requirements.txt main.py ./
2023-04-04 01:25:13 +00:00
RUN apt update
2023-04-06 05:07:21 +00:00
2023-05-05 03:31:13 +00:00
# Install Supervisords
2023-04-04 01:28:01 +00:00
RUN apt install -y supervisor
2023-04-04 01:51:08 +00:00
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
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-05-05 03:25:37 +00:00
# Expose the port in which the Application will be deployed
2023-03-23 08:05:06 +00:00
EXPOSE 5000