intergram
intergram copied to clipboard
Dockerfile
I have added a docker example. Works great for my project https://kritika.io. Thanks a lot!
Thanks @vti this looks great! I will review and a merge it.
I advise you to use an alpine base image instead, it would make it lighter and more powerful :smile:
Whaou I just realized this PR was open on 2017 ^^ I suggest this Dockerfile for 2019
FROM node:10.15.1-alpine # LTS
ENV NODE_ENV production
ENV PORT 3000
WORKDIR /app
RUN apk add --update --no-cache git && \
git clone --single-branch --depth=1 https://github.com/idoco/intergram.git && \
cd intergram && \
npm install && \
npm run build # maybe useless due to postinstall script
EXPOSE 3000
WORKDIR /app/intergram
ENTRYPOINT ["npm", "start"]