Skip to content

Commit

Permalink
Docker: keep npm
Browse files Browse the repository at this point in the history
  • Loading branch information
lujoga committed Dec 16, 2023
1 parent 0a4fb54 commit 1859b1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ RUN python3 -m pretalx migrate

RUN apt-get update && \
apt-get install -y nodejs npm && \
python3 -m pretalx rebuild && \
apt-get remove -y nodejs npm && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/* && \
python3 -m pretalx rebuild

RUN chmod +x /usr/local/bin/pretalx && \
cd /pretalx/src && \
Expand Down
2 changes: 1 addition & 1 deletion deployment/docker/pretalx.bash
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if [ "$1" == "shell" ]; then
fi

if [ "$1" == "upgrade" ]; then
exec python3 -m pretalx rebuild
python3 -m pretalx rebuild
exec python3 -m pretalx regenerate_css
fi

Expand Down

0 comments on commit 1859b1c

Please sign in to comment.