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

Commit

Permalink
docker: add a Dockerfile
Browse files Browse the repository at this point in the history
Currently using SQLite (and exoscale branding).
  • Loading branch information
vincentbernat committed Apr 20, 2015
1 parent ead0dd0 commit cee6a1a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM node:0.10

RUN npm install -g bower grunt-cli
RUN apt-get -qq update && apt-get install -qq gifsicle libjpeg-progs optipng

COPY . /dashkiosk
RUN cd /dashkiosk ; npm install
RUN cd /dashkiosk ; grunt --branding=exoscale
RUN cd /dashkiosk/dist ; npm install --production

# We use SQLite by default. If you want to keep the database between
# runs, don't forget to provide a volume for /database.
VOLUME /database

ENV NODE_ENV production
ENV port 8080
ENV db__options__storage /database/dashkiosk.sqlite

ENTRYPOINT [ "node", "/dashkiosk/dist/server.js" ]
EXPOSE 8080

0 comments on commit cee6a1a

Please sign in to comment.