2016-10-18 13:24:02 +00:00
|
|
|
FROM node:latest
|
|
|
|
MAINTAINER Candid Dauth <cdauth@cdauth.eu>
|
|
|
|
|
|
|
|
CMD npm run server
|
|
|
|
EXPOSE 8080
|
|
|
|
|
2016-10-18 18:27:57 +00:00
|
|
|
RUN useradd -m -d /opt/facilmap -s /bin/bash facilmap
|
|
|
|
WORKDIR /opt/facilmap
|
2016-10-18 13:24:02 +00:00
|
|
|
|
|
|
|
COPY ./ ./
|
2016-10-18 18:27:57 +00:00
|
|
|
RUN chown -R facilmap:facilmap .
|
2016-10-18 13:24:02 +00:00
|
|
|
|
2016-10-18 18:27:57 +00:00
|
|
|
USER facilmap
|
2016-10-18 16:55:06 +00:00
|
|
|
RUN npm run deps && npm run clean && npm run build && npm install mysql pg sqlite3 tedious
|
2016-10-18 13:24:02 +00:00
|
|
|
|
|
|
|
USER root
|
|
|
|
RUN chown -R root:root .
|
|
|
|
|
2016-10-18 18:27:57 +00:00
|
|
|
USER facilmap
|