First commit
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# === Dockerfile ===
|
||||
FROM postgres:17-alpine
|
||||
|
||||
# Install Docker CLI + bash + core utilities
|
||||
RUN apk add --no-cache docker-cli bash coreutils
|
||||
|
||||
# Create backup directory
|
||||
RUN mkdir -p /backups
|
||||
|
||||
# Copy backup script
|
||||
COPY backup.sh /usr/local/bin/backup.sh
|
||||
RUN chmod +x /usr/local/bin/backup.sh
|
||||
|
||||
# Use bash as default
|
||||
ENTRYPOINT ["/usr/local/bin/backup.sh"]
|
||||
|
||||
Reference in New Issue
Block a user