#!/bin/bash | |
# Note: if you change the listen address, make sure you change it in the | |
# Dockerfile as well! | |
export LISTEN_ADDRESS='0.0.0.0:8080' | |
export GIN_MODE='release' | |
mkdir -p /srv/aptly-publish-fs | |
chown -R aptly-api:aptly-api /var/lib/aptly-api /srv/aptly-publish-fs | |
exec su - aptly-api /usr/bin/aptly api serve \ | |
-config=/etc/aptly-api.conf \ | |
-listen="${LISTEN_ADDRESS}" |