Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Conversation

@zampettim
Copy link

This adds the ability to define the docker image to use for the build.

@zampettim zampettim changed the title Solution for Issue 39 Add ability to define own Docker image (Issue 39) Jul 12, 2017
Copy link
Contributor

@dschep dschep left a comment

Choose a reason for hiding this comment

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

i like it! just a minor simplification if you don't mind 😃

index.js Outdated
if (this.custom().dockerizePip) {
cmd = 'docker';

let image = `lambci/lambda:build-${runtime}`
Copy link
Contributor

Choose a reason for hiding this comment

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

mind simplifying to this?

const image = this.custom().dockerImage || `lambci/lambda:build-${runtime}`;

Copy link
Author

Choose a reason for hiding this comment

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

I don't have any issues. I'm not much of a JS developer, so whatever you think is best. I'll update the PR in a minute.

@dschep dschep merged commit caa5ca2 into serverless:master Jul 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants