mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
25 lines
685 B
Docker
25 lines
685 B
Docker
FROM python:3.10-slim
|
|
LABEL maintainer="Websoft9<help@websoft9.com>"
|
|
LABEL version="0.8.14"
|
|
|
|
# Create API Directory
|
|
WORKDIR /usr/src/app
|
|
|
|
# Copy source and install pip dpendencies
|
|
COPY api ./api
|
|
COPY static ./static
|
|
COPY requirements.txt main.py hostname.py ./
|
|
RUN mkdir /usr/src/app/db
|
|
COPY database.sqlite /usr/src/app/db/
|
|
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
|
|
|
|
# Expose the port in which the application will be deployed
|
|
EXPOSE 5000
|