2023-09-18 18:00:41 +02:00
|
|
|
# Base image
|
|
|
|
FROM ghcr.io/mjanez/ckan-pycsw:main AS base
|
2023-04-13 14:10:40 +02:00
|
|
|
|
2023-09-18 18:00:41 +02:00
|
|
|
# ckan-pycsw envvars
|
2023-04-13 14:10:40 +02:00
|
|
|
ENV APP_DIR=/app
|
|
|
|
ENV TZ=UTC
|
|
|
|
ENV PYCSW_CKAN_SCHEMA=iso19139_inspire
|
|
|
|
ENV PYCSW_CONFIG=${APP_DIR}/pycsw.conf
|
|
|
|
ENV CKAN_URL=http://localhost:5000/
|
|
|
|
ENV PYCSW_PORT=8000
|
|
|
|
ENV PYCSW_URL=http://localhost:${PYCSW_PORT}/
|
2023-04-21 09:30:56 +02:00
|
|
|
ENV DEV_MODE=False
|
2023-04-13 14:10:40 +02:00
|
|
|
ENV TIMEOUT=300
|
2023-04-21 09:30:56 +02:00
|
|
|
ENV PYCSW_CRON_DAYS_INTERVAL=2
|
2023-04-22 15:57:09 +02:00
|
|
|
ENV PYCSW_CRON_HOUR_START=4
|
2023-09-18 18:00:41 +02:00
|
|
|
|
2023-04-13 14:10:40 +02:00
|
|
|
WORKDIR ${APP_DIR}
|
|
|
|
|
2023-09-18 18:00:41 +02:00
|
|
|
# Update files if needed
|
|
|
|
COPY pycsw/conf/pycsw.conf.template docker-entrypoint.d/entrypoint.sh ./
|
2023-04-13 14:10:40 +02:00
|
|
|
|
2023-09-18 18:00:41 +02:00
|
|
|
USER $USERNAME
|
2023-04-22 15:57:09 +02:00
|
|
|
|
2023-09-18 18:00:41 +02:00
|
|
|
ENTRYPOINT ["/bin/bash", "./entrypoint.sh"]
|