UNPKG

@arc-fusion/cli

Version:

CLI for running Arc Fusion on your local machine

22 lines (15 loc) 555 B
'use strict' const path = require('path') const { dirExists } = require('../bin/utils/promises') module.exports = async ({ PROJECT_ROOT }) => { const hasScripts = await dirExists(path.join(PROJECT_ROOT, 'scripts')) return ` ARG FUSION_RELEASE=latest FROM washpost/fusion-engine:\${FUSION_RELEASE} # must use COPY instead of volume to get proper file system case-sensitivity COPY ./ ./bundle/src/ ${hasScripts ? 'COPY ./scripts/ ./bundle/scripts/' : ''} # ensure we install node_modules from package.json RUN rm -rf ./bundle/src/node_modules ` }