# Copyright (c) 2016 by Niklaus Giger niklaus.giger@member.fsf.org # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public License v1.0 # which accompanies this distribution, and is available at # http:#www.eclipse.org/legal/epl-v10.html # # Dockerfile for an elexis-server FROM ruby:2.3.1 MAINTAINER Niklaus Giger "niklaus.giger@member.fsf.org" # RUN apt-get update && \ # DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ # gnupg2 dirmngr unzip procps telnet git ca-certificates ca-certificates-java RUN git clone https://github.com/ngiger/davaz.com.git /opt/davaz.com # Patched Gemfile which contains gem 'sbsm', :git => 'https://github.com/ngiger/sbsm.git' COPY Gemfile wait-for-it.sh start_davaz_com.sh /opt/davaz.com/ RUN cd /opt/davaz.com && bundle install RUN addgroup --gid=1033 davaz && adduser --disabled-password --gecos "" --uid=1033 --gid=1033 davaz RUN chown -R davaz:davaz /opt/davaz.com /home/davaz/ # install elinks for debugging purposes only RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y elinks RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - RUN apt-get install -y nodejs USER davaz RUN mkdir -p /opt/davaz.com/log /opt/davaz.com/etc COPY config.yml db_connection_data.yml /opt/davaz.com/etc/ COPY app.rb /opt/davaz.com/src/util/app.rb COPY config.ru /opt/davaz.com/ WORKDIR /home/davaz