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

feat: add Dockerfile to this project #173

Merged
merged 1 commit into from
Nov 2, 2018
Merged

feat: add Dockerfile to this project #173

merged 1 commit into from
Nov 2, 2018

Conversation

targos
Copy link
Member

@targos targos commented Nov 2, 2018

Inspired by https://github.com/cheminfo/rest-on-couch-docker
Then we can archive that repo and don't need another step to publish the Docker image.

@codecov

This comment has been minimized.

@lpatiny
Copy link
Member

lpatiny commented Nov 2, 2018

Looks good. Hope there was no good reason why it was another project

Copy link
Member

@lpatiny lpatiny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Hope there was no good reason why it was another project

@targos targos merged commit cb4b560 into master Nov 2, 2018
@targos targos deleted the docker branch November 2, 2018 09:00

WORKDIR /rest-on-couch-source
COPY --from=builder /rest-on-couch-source /rest-on-couch-source
RUN npm install -g pm2 && npm ci && rm -rf /root/.npm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really understand the point of having a multistage build in the Dockefile.

Why are you removing node_modules in the other image and redoing npm ci here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here it's done with NODE_ENV set to "production". But you're right multistage is probably overkill in this case, especially now that npm ci already deletes node_modules. Feel free to improve the file.

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