diff --git a/Dockerfile b/Dockerfile index bb7403bd..2d5d02b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,11 @@ RUN apt-get -qq update && apt-get install -qq gifsicle libjpeg-progs optipng WORKDIR /dashkiosk COPY . /dashkiosk/ -RUN npm install -RUN grunt --branding=exoscale -RUN cd dist ; ln -s ../node_modules +RUN npm install && \ + grunt --branding=exoscale && \ + cd dist && \ + npm install --production && \ + rm -rf ../node_modules ../build # We use SQLite by default. If you want to keep the database between # runs, don't forget to provide a volume for /database. diff --git a/docs/install.rst b/docs/install.rst index caed4fec..ca974794 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -35,11 +35,11 @@ To install it, you need to execute the following step: $ grunt - 7. Upon success, you will get a `dist` directory that you can put on + 7. Upon success, you will get a ``dist`` directory that you can put on some server. It includes both the receiver and the server - part. Then, go to `dist`:: + part. Then:: - $ npm install --production + $ cd dist && npm install --production 8. If you want to use the Android application, you still need to build it and install it. See :doc:`android`.