Add npminstall to pip and docker build processes

This commit is contained in:
Raphael Michel
2021-03-30 14:29:18 +02:00
parent ba0849ea8d
commit e7db4e7c42
3 changed files with 16 additions and 3 deletions
+6 -3
View File
@@ -1,4 +1,4 @@
FROM python:3.8
FROM python:3.9
RUN apt-get update && \
apt-get install -y --no-install-recommends \
@@ -31,7 +31,11 @@ RUN apt-get update && \
useradd -ms /bin/bash -d /pretix -u 15371 pretixuser && \
echo 'pretixuser ALL=(ALL) NOPASSWD:SETENV: /usr/bin/supervisord' >> /etc/sudoers && \
mkdir /static && \
mkdir /etc/supervisord
mkdir /etc/supervisord && \
curl -fsSL https://deb.nodesource.com/setup_15.x | sudo -E bash - && \
apt-get install -y nodejs && \
curl -qL https://www.npmjs.com/install.sh | sh
ENV LC_ALL=C.UTF-8 \
DJANGO_SETTINGS_MODULE=production_settings
@@ -67,7 +71,6 @@ RUN chmod +x /usr/local/bin/pretix && \
rm -f pretix.cfg && \
mkdir -p data && \
chown -R pretixuser:pretixuser /pretix /data data && \
sudo -u pretixuser make npminstall && \
sudo -u pretixuser make production
USER pretixuser