manbytesgnu_site

Source files for manbytesgnu.org
git clone git://holbrook.no/manbytesgnu_site.git
Info | Log | Files | Refs

20211022_docker_npm_continued.rst (728B)


      1 Local npm bundles
      2 #################
      3 
      4 :date: 2021-10-22 15:26
      5 :category: Offlining
      6 :author: Louis Holbrook
      7 :tags: docker,npm,nodejs,javascript,devops
      8 :slug: docker-offline-5-npm-bundle
      9 :summary: Feeding npm packages to your offline Docker setup
     10 :series: Offline Docker
     11 :seriesprefix: docker-offline
     12 :seriespart: 5
     13 :lang: en
     14 :status: draft
     15 
     16 
     17 .. code-block:: console
     18    
     19         <Directory "/srv/http/npm">
     20                 DirectoryIndex package.json
     21                 RewriteEngine on
     22                 RewriteRule "^(.+)-\/(.+)$" "/npm/$1$2" [R=301]
     23         </Directory>
     24 
     25 
     26 .. include:: code/docker-offline-5-npm-bundle/bundles.py
     27         :code: python
     28 
     29 
     30 .. include:: code/docker-offline-5-npm-bundle/translate.sh
     31         :code: bash