First commit
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@ -0,0 +1,23 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
# Labels
|
||||
LABEL maintainer="Paulino Padial <github.com/ppadial>"
|
||||
|
||||
# Environment variables (with default values)
|
||||
ENV LOG_LEVEL=8
|
||||
|
||||
# Packages installation
|
||||
RUN apt-get update && apt-get upgrade -y && \
|
||||
apt-get install -y autopostgresqlbackup cron bzip2 gzip && \
|
||||
apt-get purge -y --auto-remove && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Configure entrypoint
|
||||
ADD docker-entrypoint.sh /docker-entrypoint.sh
|
||||
RUN chmod +x /docker-entrypoint.sh
|
||||
|
||||
# Volumes declaration
|
||||
VOLUME ["/backup", "/scripts"]
|
||||
|
||||
# Start the container process
|
||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
Reference in New Issue
Block a user