Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Dockerfile #28

wants to merge 1 commit into from

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