add a Dockerfile

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2018-10-17 09:44:45 -04:00
parent a6d866aac8
commit 59fad17e08
1 changed files with 20 additions and 0 deletions

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM node:8.12-slim
WORKDIR /app
COPY package.json ./
RUN npm install --only=production
COPY src/ ./src/
COPY .babelrc ./
ENV REDIS_HOST=localhost \
REDIS_PORT=6379 \
LISTEN_PORT=3000
LABEL source="https://github.com/status-im/clicks-counter" \
description="Basic NodeJS API for counting clicks." \
maintainer="jakub@status.im"
CMD ["npm", "start"]
EXPOSE $LISTEN_PORT