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 <public@benj.me>
# 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://git.symlink.me/pub/weboob/stable.git /tmp/weboob
WORKDIR /tmp/weboob
RUN python ./setup.py 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 HOST 0.0.0.0
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 https://framagit.org/bnjbvr/kresus && 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](http://weboob.org/) 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