kopia lustrzana https://github.com/OpenDroneMap/WebODM
Copy remaining files in one step.
rodzic
dc23fc8312
commit
2688b9f397
13
Dockerfile
13
Dockerfile
|
@ -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 && \
|
||||
|
|
Ładowanie…
Reference in New Issue