intergram icon indicating copy to clipboard operation
intergram copied to clipboard

Dockerfile

Open vti opened this issue 8 years ago • 3 comments

I have added a docker example. Works great for my project https://kritika.io. Thanks a lot!

vti avatar Oct 29 '17 14:10 vti

Thanks @vti this looks great! I will review and a merge it.

idoco avatar Oct 29 '17 20:10 idoco

I advise you to use an alpine base image instead, it would make it lighter and more powerful :smile:

SkYNewZ avatar Feb 19 '19 00:02 SkYNewZ

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"]

SkYNewZ avatar Feb 19 '19 00:02 SkYNewZ