facilmap/Dockerfile

19 wiersze
370 B
Docker

FROM node:latest
MAINTAINER Candid Dauth <cdauth@cdauth.eu>
CMD npm run server
EXPOSE 8080
RUN useradd -m -d /opt/facilmap -s /bin/bash facilmap
WORKDIR /opt/facilmap
COPY ./ ./
RUN chown -R facilmap:facilmap .
USER facilmap
RUN npm run deps && npm run clean && npm run build && npm install mysql pg sqlite3 tedious
USER root
RUN chown -R root:root .
USER facilmap