Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
docker: try to minimize image size
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentbernat committed Aug 6, 2015
1 parent 0eb3b1c commit ac2e422
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit ac2e422

Please sign in to comment.