FROM docker.io/node:lts-alpine MAINTAINER Hende, Botond LABEL Description="Ethercalc server" ENV NODE_ENV=production ENV OPENSHIFT_DATA_DIR=/srv/ethercalc RUN npm install --global ethercalc RUN mkdir /srv/ethercalc && chown -R node:node /srv/ethercalc WORKDIR /srv/ethercalc USER node EXPOSE 8000/tcp CMD ["/usr/local/bin/ethercalc"]