Fix ckan-pycsw service

This commit is contained in:
mjanez 2023-09-22 16:07:57 +00:00 committed by GitHub
parent f86e1be5a5
commit 94573c4290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View File

@ -1,5 +1,6 @@
# Base image
FROM ghcr.io/mjanez/ckan-pycsw:main AS base
LABEL maintainer="mnl.janez@gmail.com"
# ckan-pycsw envvars
ENV APP_DIR=/app
@ -19,6 +20,4 @@ WORKDIR ${APP_DIR}
# Update files if needed
COPY pycsw/conf/pycsw.conf.template docker-entrypoint.d/entrypoint.sh ./
USER root
ENTRYPOINT ["/bin/bash", "./entrypoint.sh"]

View File

@ -2,13 +2,6 @@
set -xeuo pipefail
# Change ownership of log and metadata directories
chown -R $USERNAME:$USERNAME ${APP_DIR}/log
chown -R $USERNAME:$USERNAME ${APP_DIR}/metadata
# Switch to the non-root user
su - $USERNAME
envsubst < pycsw.conf.template > pycsw.conf
#TODO: -Xfrozen_modules=off from: https://bugs.python.org/issue1666807