2016-07-19 17:21:06 +00:00
|
|
|
"use strict";
|
2017-03-28 23:01:37 +00:00
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
2016-07-19 17:21:06 +00:00
|
|
|
const plugins = require("./npmdocker.plugins");
|
|
|
|
exports.dockerfileSnippet = (optionsArg) => {
|
|
|
|
return plugins.smartstring.indent.normalize(`
|
|
|
|
FROM ${optionsArg.baseImage}
|
2017-04-02 12:48:23 +00:00
|
|
|
RUN yarn global add npmdocker
|
2016-07-28 22:52:30 +00:00
|
|
|
COPY ./buildContextDir /workspace
|
2016-07-19 17:21:06 +00:00
|
|
|
WORKDIR /workspace
|
|
|
|
ENV CI=true
|
2017-04-02 12:48:23 +00:00
|
|
|
CMD ["npmdocker","runinside"];
|
2016-07-19 17:21:06 +00:00
|
|
|
`);
|
|
|
|
};
|
2017-04-02 12:48:23 +00:00
|
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtZG9ja2VyLnNuaXBwZXRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvbnBtZG9ja2VyLnNuaXBwZXRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsK0NBQStDO0FBT3BDLFFBQUEsaUJBQWlCLEdBQUcsQ0FBQyxVQUE4QjtJQUM1RCxNQUFNLENBQUMsT0FBTyxDQUFDLFdBQVcsQ0FBQyxNQUFNLENBQUMsU0FBUyxDQUFDO2VBQy9CLFVBQVUsQ0FBQyxTQUFTOzs7Ozs7S0FNOUIsQ0FBQyxDQUFBO0FBQ04sQ0FBQyxDQUFBIn0=
|