Skip to content

Instantly share code, notes, and snippets.

@anvie
Created September 27, 2023 06:26
Show Gist options
  • Save anvie/d11d5061624a75d07d0f671be79b0db9 to your computer and use it in GitHub Desktop.
Save anvie/d11d5061624a75d07d0f671be79b0db9 to your computer and use it in GitHub Desktop.
Base docker image for multiple service in one container settings, contains: cron, python3, and supervisor.
FROM node:bullseye-slim
# Install cron
RUN apt-get update && apt-get install -y cron && which cron && \
rm -rf /etc/cron.*/*
# Install Python3
RUN apt-get install -y python3
# Install Supervisord
RUN apt-get install -y supervisor
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
CMD ["supervisord"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment