Init
Some checks failed
Build Website / Build Dockerfile (push) Failing after 4m44s

This commit is contained in:
2026-03-04 11:27:27 -05:00
parent 7182d9ee45
commit e94f9e7844
6 changed files with 129 additions and 96 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM mongo:latest
ENV BACKUP_DIR=/data/backups
# Install cron
RUN apt-get update && apt-get install -y cron && rm -rf /var/lib/apt/lists/*
# Copy backup script
COPY backup.sh /usr/local/bin/backup
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/backup && \
chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["mongod"]