2018-12-13 21:45:27 +00:00
|
|
|
FROM node:10.14-alpine
|
2018-12-12 22:35:17 +00:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY package.json ./
|
2018-12-13 21:41:11 +00:00
|
|
|
RUN yarn install --production
|
2018-12-12 22:35:17 +00:00
|
|
|
|
|
|
|
COPY dist/ ./
|
|
|
|
|
2018-12-20 21:17:13 +00:00
|
|
|
ENV LOG_LEVEL=INFO \
|
|
|
|
LISTEN_PORT=8000 \
|
2018-12-13 09:12:58 +00:00
|
|
|
DB_SAVE_INTERVAL=5000 \
|
|
|
|
DB_PATH='/tmp/builds.db' \
|
|
|
|
GH_TOKEN='' \
|
|
|
|
GH_REPO_OWNER='' \
|
|
|
|
GH_REPO_NAME=''
|
2018-12-12 22:35:17 +00:00
|
|
|
|
|
|
|
LABEL source="https://github.com/status-im/github-comment-manager" \
|
|
|
|
description="Basic NodeJS API for managing CI build GitHub posts." \
|
|
|
|
maintainer="jakub@status.im"
|
|
|
|
|
|
|
|
CMD ["npm", "start"]
|
|
|
|
EXPOSE $LISTEN_PORT
|