Permalink
Cannot retrieve contributors at this time
Fetching contributors…
| ########################################################### | |
| # | |
| # Dockerfile for bigfive-web | |
| # | |
| ########################################################### | |
| # Setting the base to nodejs 7 | |
| FROM mhart/alpine-node:7 | |
| # Maintainer | |
| MAINTAINER Jonas Enge | |
| #### Begin setup #### | |
| # Extra tools for native dependencies | |
| RUN apk add --no-cache make gcc g++ python | |
| # Bundle app source | |
| COPY . /src | |
| # Change working directory | |
| WORKDIR "/src" | |
| # Env variables | |
| ENV SERVER_PORT 3000 | |
| ENV DATA_URL https://questions.bigfive.maccyber.io/getQuestions | |
| ENV GENERATOR_URL https://generator.bigfive.maccyber.io | |
| ENV DEFAULT_LANG en | |
| ENV DEFAULT_LIMIT 5 | |
| ENV DEFAULT_TEST 50 | |
| # Install dependencies | |
| RUN npm install --production | |
| RUN npm run build | |
| # Expose 3000 | |
| EXPOSE ${SERVER_PORT} | |
| # Startup | |
| ENTRYPOINT npm run start |