Fix ckan-pycsw service
This commit is contained in:
parent
f86e1be5a5
commit
94573c4290
|
@ -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"]
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue