ForestAdmin/lumber

View on GitHub
Dockerfile

Summary

Maintainability
Test Coverage
FROM node:lts-jessie

WORKDIR /usr/src/app
RUN npm install -g lumber-cli -s

VOLUME /usr/src/app

EXPOSE $APPLICATION_PORT
CMD lumber generate "${APPLICATION_NAME:-$APP_NAME}" \
    -c "$DATABASE_URL" \
    -S "${DATABASE_SSL:-false}" \
    -s "$DATABASE_SCHEMA" \
    -H "$APPLICATION_HOST" \
    -p "$APPLICATION_PORT" \
    --email "$FOREST_EMAIL" \
    --token "$FOREST_TOKEN" && \
  cd "${APPLICATION_NAME:-$APP_NAME}" && \
  npm install -s