Copy remaining files in one step.

pull/1670/head
Mathijs de Bruin 2025-05-11 14:56:18 +01:00
rodzic dc23fc8312
commit 2688b9f397
1 zmienionych plików z 5 dodań i 8 usunięć

Wyświetl plik

@ -68,23 +68,20 @@ RUN ln -s ./nginx/crontab /var/spool/cron/crontabs/root && \
COPY package.json ./
RUN npm install --quiet
# Copy remaining files
COPY . ./
# NodeODM setup
COPY --chmod=0755 nginx/letsencrypt-autogen.sh ./nginx/letsencrypt-autogen.sh
COPY nodeodm ./nodeodm
RUN ./nodeodm/setup.sh && \
RUN chmod +x ./nginx/letsencrypt-autogen.sh && \
./nodeodm/setup.sh && \
./nodeodm/cleanup.sh
# Install and run webpack build
# Note webpack CLI is also used in `rebuildplugins` below
COPY webpack.config.js ./
COPY app ./app
RUN npm install --quiet -g webpack@5.89.0 && \
npm install --quiet -g webpack-cli@5.1.4 && \
webpack --mode production
# Copy remaining files
COPY . ./
# Django setup
RUN python manage.py collectstatic --noinput && \
python manage.py rebuildplugins && \