-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (23 loc) · 713 Bytes
/
Dockerfile
File metadata and controls
36 lines (23 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Dockerfile
#
# Project: AutoArchive Docker image
# License: GNU GPLv3
#
# Copyright (C) 2015 - 2018 Robert Cernansky
# Dockerfile for AutoArchive Docker image.
FROM python:slim
MAINTAINER openhs
LABEL version="0.0.3" \
description="Simple backup tool Docker image."
RUN pip3 install autoarchive
RUN mkdir /etc/aa && \
/bin/echo -e \
"[General]\n\
archive-specs-dir = /opt/aa/archive_specs\n\
user-config-dir = /opt/aa/user_config_dir" >> /etc/aa/aa.conf && \
mkdir -p /opt/aa/user_config_dir/storage
COPY ./backup.aa /opt/aa/archive_specs/
COPY ./backup-incremental.aa /opt/aa/archive_specs/
VOLUME /opt/aa/user_config_dir
WORKDIR /opt/aa/backup
ENTRYPOINT ["aa"]