Fix ckan-pycsw service
This commit is contained in:
parent
f86e1be5a5
commit
94573c4290
|
@ -1,5 +1,6 @@
|
||||||
# Base image
|
# Base image
|
||||||
FROM ghcr.io/mjanez/ckan-pycsw:main AS base
|
FROM ghcr.io/mjanez/ckan-pycsw:main AS base
|
||||||
|
LABEL maintainer="mnl.janez@gmail.com"
|
||||||
|
|
||||||
# ckan-pycsw envvars
|
# ckan-pycsw envvars
|
||||||
ENV APP_DIR=/app
|
ENV APP_DIR=/app
|
||||||
|
@ -19,6 +20,4 @@ WORKDIR ${APP_DIR}
|
||||||
# Update files if needed
|
# Update files if needed
|
||||||
COPY pycsw/conf/pycsw.conf.template docker-entrypoint.d/entrypoint.sh ./
|
COPY pycsw/conf/pycsw.conf.template docker-entrypoint.d/entrypoint.sh ./
|
||||||
|
|
||||||
USER root
|
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash", "./entrypoint.sh"]
|
ENTRYPOINT ["/bin/bash", "./entrypoint.sh"]
|
|
@ -2,13 +2,6 @@
|
||||||
|
|
||||||
set -xeuo pipefail
|
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
|
envsubst < pycsw.conf.template > pycsw.conf
|
||||||
|
|
||||||
#TODO: -Xfrozen_modules=off from: https://bugs.python.org/issue1666807
|
#TODO: -Xfrozen_modules=off from: https://bugs.python.org/issue1666807
|
||||||
|
|
Loading…
Reference in New Issue