Commit e9e638c8 authored by Benjamin Bouvier's avatar Benjamin Bouvier
Browse files

Update Dockerfile to use a global recent weboob version;

(and add instructions in the readme)
parent f0633730
FROM node:4.4.4-slim
MAINTAINER Benjamin Bouvier <>
# Install system dependencies
RUN apt-get update -y && \
apt-get install -y python-weboob-core && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Weboob and its dependencies.
RUN apt-get update && \
apt-get install -y git python python-setuptools python-dev libffi-dev \
libxml2-dev libxslt-dev libyaml-dev libtiff-dev libjpeg-dev zlib1g-dev \
libfreetype6-dev libwebp-dev build-essential gcc g++;
RUN git clone git:// /tmp/weboob
WORKDIR /tmp/weboob
RUN python ./ install
# Setup kresus layout.
RUN mkdir -p /usr/data
VOLUME /usr/data
# Setup project layout
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Install app dependencies
# Install app dependencies.
COPY package.json package.json
RUN npm install --production
# Copy source
# Copy source.
COPY build /usr/src/app/build
COPY bin /usr/src/app/bin
# Run server
# Run server.
ENV KRESUS_DIR /usr/data
CMD bin/kresus.js
# Expose the port on which Kresus is running.
......@@ -13,6 +13,16 @@ but is way different now.
# How to install Kresus
## With Docker
There is a Dockerfile from which you can build and run Kresus, using the
following commands (don't forget to change the port mapping and the volume
mapping, if necessary!):
- `git clone && cd kresus`
- `docker build -t kresus .`
- `docker run -p 9876:9876 -v /tmp/kresus-data:/usr/data -ti -d kresus`
## Pre-requisites
Kresus uses [Weboob]( under the hood, to connect to your
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment