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 ./
|
COPY package.json ./
|
||||||
RUN npm install --quiet
|
RUN npm install --quiet
|
||||||
|
|
||||||
|
# Copy remaining files
|
||||||
|
COPY . ./
|
||||||
|
|
||||||
# NodeODM setup
|
# NodeODM setup
|
||||||
COPY --chmod=0755 nginx/letsencrypt-autogen.sh ./nginx/letsencrypt-autogen.sh
|
RUN chmod +x ./nginx/letsencrypt-autogen.sh && \
|
||||||
COPY nodeodm ./nodeodm
|
./nodeodm/setup.sh && \
|
||||||
RUN ./nodeodm/setup.sh && \
|
|
||||||
./nodeodm/cleanup.sh
|
./nodeodm/cleanup.sh
|
||||||
|
|
||||||
# Install and run webpack build
|
# Install and run webpack build
|
||||||
# Note webpack CLI is also used in `rebuildplugins` below
|
# 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 && \
|
RUN npm install --quiet -g webpack@5.89.0 && \
|
||||||
npm install --quiet -g webpack-cli@5.1.4 && \
|
npm install --quiet -g webpack-cli@5.1.4 && \
|
||||||
webpack --mode production
|
webpack --mode production
|
||||||
|
|
||||||
# Copy remaining files
|
|
||||||
COPY . ./
|
|
||||||
|
|
||||||
# Django setup
|
# Django setup
|
||||||
RUN python manage.py collectstatic --noinput && \
|
RUN python manage.py collectstatic --noinput && \
|
||||||
python manage.py rebuildplugins && \
|
python manage.py rebuildplugins && \
|
||||||
|
|
Ładowanie…
Reference in New Issue