blob: 80bf24ea45fc61e8a7553d17c06fcd43f2bdc04c [file] [log] [blame]
#!/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}"