2023-04-20 08:21:39 +02:00
|
|
|
FROM ghcr.io/mjanez/ckan-pycsw:latest
|
2023-04-13 14:10:40 +02:00
|
|
|
|
|
|
|
# Set up environment variables
|
|
|
|
ENV APP_DIR=/app
|
|
|
|
ENV TZ=UTC
|
|
|
|
RUN echo ${TZ} > /etc/timezone
|
|
|
|
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-04-13 14:10:40 +02:00
|
|
|
WORKDIR ${APP_DIR}
|
|
|
|
|
|
|
|
COPY pycsw/conf/pycsw.conf.template pycsw/entrypoint.sh .
|
|
|
|
|
2023-04-22 15:57:09 +02:00
|
|
|
EXPOSE ${PYCSW_PORT}/TCP
|
|
|
|
|
2023-04-13 14:10:40 +02:00
|
|
|
ENTRYPOINT ["/bin/bash", "./entrypoint.sh"]
|
2023-04-22 15:57:09 +02:00
|
|
|
CMD ["tail", "-f", "/dev/null"]
|