Skip to content

Conversation

@vti
Copy link

@vti vti commented Oct 29, 2017

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

@idoco
Copy link
Owner

idoco commented Oct 29, 2017

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

@SkYNewZ
Copy link

SkYNewZ commented Feb 19, 2019

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

@SkYNewZ
Copy link

SkYNewZ commented Feb 19, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants