add files to create Docker image

This commit is contained in:
null
2024-02-05 10:40:37 +01:00
parent 0bf1394fa5
commit c20cb9cb13
4 changed files with 101 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
# Use the official Python image as the base image
FROM python:latest
# Install Supervisord
RUN pip install supervisor flask
# Copy your Supervisord configuration file into the container
COPY supervisord.conf /etc/supervisor/supervisord.conf
COPY entrypoint.sh /usr/local/bin
# Create a directory for your Python script
WORKDIR /home/githook
# Copy your Python script into the container
COPY githook.py .
# Expose any necessary ports (if your script listens on a specific port)
EXPOSE 5000
EXPOSE 8080
WORKDIR /home/
# Define the command to start Supervisord
CMD ["entrypoint.sh"]
#CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]