const fs = require('fs')
const path = require('path')

const version = process.argv[2]

if (!version) {
    throw new Error('Missing <version> argument')
}

const dockerrun = {
    AWSEBDockerrunVersion: '1',
    Image: {
        Name: `mojdigitalstudio/licences: ${version}`,
        Update: 'true',
    },
    Ports: [{ ContainerPort: '3000' }],
}

const output = JSON.stringify(dockerrun, null, 2)

fs.writeFileSync(path.resolve(__dirname, '../Dockerrun.aws.json'), output)

const fs = require('fs')
const path = require('path')

const version = process.argv[2]

if (!version) {
    throw new Error('Missing <version> argument')
}

const dockerrun = {
    AWSEBDockerrunVersion: '1',
    Image: {
        Name: `mojdigitalstudio/licences:${version}`,
        Update: 'true',
    },
    Ports: [{ ContainerPort: '3000' }],
}

const output = JSON.stringify(dockerrun, null, 2)

fs.writeFileSync(path.resolve(__dirname, '../Dockerrun.aws.json'), output)

Fix eb deploy after prettier / eslint changes
Fix eb deploy after prettier / eslint changes
