Fix #3 add dockerfile

This commit is contained in:
sebthom
2022-01-24 06:25:12 +01:00
parent ba72989a85
commit cc9aaf9a4b
7 changed files with 240 additions and 2 deletions

24
docker/image/run.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
#
# Copyright (C) 2022 Sebastian Thomschke and contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
#
set -e -u
##############################
# execute script with bash if loaded with other shell interpreter
##############################
if [ -z "${BASH_VERSINFO:-}" ]; then /usr/bin/env bash "$0" "$@"; exit; fi
set -o pipefail
trap 'echo >&2 "$(date +%H:%M:%S) Error - exited with status $? at line $LINENO:"; pr -tn $0 | tail -n+$((LINENO - 3)) | head -n7' ERR
if [ -f "$INIT_SH_FILE" ]; then
source "$INIT_SH_FILE"
fi
cd /mnt/data
python -m kleinanzeigen_bot --config $CONFIG_FILE "$@"