2016-12-27 15:13:32 +00:00
|
|
|
FROM node:7.3-alpine
|
2016-10-18 13:24:02 +00:00
|
|
|
MAINTAINER Candid Dauth <cdauth@cdauth.eu>
|
|
|
|
|
|
|
|
CMD npm run server
|
|
|
|
EXPOSE 8080
|
|
|
|
|
2016-12-27 15:13:32 +00:00
|
|
|
RUN apk update && apk add git
|
|
|
|
|
|
|
|
RUN adduser -D -h /opt/facilmap -s /bin/bash facilmap
|
2016-10-18 18:27:57 +00:00
|
|
|
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-12-27 15:13:32 +00:00
|
|
|
USER facilmap
|