Skip to content
Snippets Groups Projects
Verified Commit 073fa5c1 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

swh-web: Unify docker image with others

parent ddfd285e
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ RUN apt-get -y update && \
apt clean && \
addgroup --gid 1000 swh && \
useradd --gid 1000 --uid 1000 -m -d /opt/swh swh && \
mkdir -p /etc/softwareheritage /var/log/softwareheritage/webapp && \
mkdir -p /var/log/softwareheritage/webapp && \
chown swh:swh /var/log/softwareheritage/webapp
USER swh
......@@ -24,7 +24,7 @@ RUN chmod u+x /opt/swh/entrypoint.sh && \
pip install --no-cache-dir -r requirements-frozen.txt && \
pip install gunicorn
ENV SWH_CONFIG_FILENAME=/etc/softwareheritage/config.yml
ENV SWH_CONFIG_FILENAME=/etc/swh/config.yml
ENV PORT 5004
EXPOSE $PORT
ENV THREADS 2
......
......@@ -5,8 +5,11 @@ set -e
case "$1" in
"shell")
shift
echo "Running command $@"
exec bash -i "$@"
if (( $# == 0)); then
exec bash -i
else
"$@"
fi
;;
"refresh")
echo "Start periodic save code now refresh statuses routine (in background)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment