31 lines
947 B
Plaintext
31 lines
947 B
Plaintext
IMAGE ckan-datapusher_0.0.15-200313
|
|
FROM alpine3.11-python2.7_2.7.16-200313
|
|
|
|
RUN EOF
|
|
# Install runtime dependencies
|
|
apk --no-cache add libffi uwsgi-python
|
|
|
|
# Install build dependencies
|
|
apk --no-cache add --virtual .deps build-base git libffi-dev libressl-dev libxml2-dev libxslt-dev py2-pip python2-dev
|
|
|
|
# Install CKAN DataPusher
|
|
mkdir -p /srv/ckan-datapusher
|
|
cd /srv/ckan-datapusher
|
|
pip install -U setuptools
|
|
pip install -e 'git+https://github.com/ckan/datapusher.git@3926f14a5fd2143cfa005eede6588b35c4a07513#egg=datapusher'
|
|
|
|
# Create OS user
|
|
addgroup -S -g 8080 ckandp
|
|
adduser -S -u 8080 -h /srv/ckan-datapusher -s /bin/false -g ckandp -G ckandp ckandp
|
|
chown -R ckandp:ckandp /srv/ckan-datapusher
|
|
|
|
# Cleanup
|
|
apk --no-cache del .deps
|
|
find /srv/ckan-datapusher/src -name '.git*' -exec rm -rf {} +
|
|
rm -rf /root/.cache
|
|
EOF
|
|
|
|
COPY ckan-datapusher.image.d
|
|
|
|
CMD /bin/execlineb -P /run
|