File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,8 @@ COPY requirements.txt ${BACKUP_DAEMON_HOME}/
1313RUN set -x \
1414 && pip3 install --upgrade pip==${PIP} setuptools==${SETUPTOOLS} \
1515 && rm -rf /var/cache/apk/* \
16- && apk add --no-cache curl sqlite sqlite-dev build-base \
16+ && apk add --no-cache curl sqlite sqlite-dev build-base ca-certificates \
1717 && wget \
18- --no-check-certificate \
1918 -nv \
2019 -O ${TMP_DIR}/apsw-${PY_APSW_VER}.zip \
2120 "https://github.com/rogerbinns/apsw/releases/download/${PY_APSW_VER}/apsw-${PY_APSW_VER}.zip" \
@@ -24,6 +23,8 @@ RUN set -x \
2423 && pip3 install -r ${BACKUP_DAEMON_HOME}/requirements.txt \
2524 && apk del build-base
2625
26+ RUN addgroup -S backup && adduser -S backup -G backup
27+
2728COPY src tests ${BACKUP_DAEMON_HOME}/
2829RUN python3 -m unittest discover -s ${BACKUP_DAEMON_HOME} -p "*_tests.py"
2930
@@ -33,7 +34,11 @@ RUN chmod +x /usr/bin/bdcli
3334RUN chmod 777 /var/log
3435
3536RUN mkdir -p ${S3_CERT_PATH_INTERNAL} \
36- && chmod 777 ${S3_CERT_PATH_INTERNAL}
37+ && chmod 770 ${S3_CERT_PATH_INTERNAL}
38+
39+ RUN chown -R backup:backup ${BACKUP_DAEMON_HOME} ${S3_CERT_PATH_INTERNAL} /var/log
40+
41+ USER backup
3742
3843VOLUME /backup-storage
3944
You can’t perform that action at this time.
0 commit comments