$ cd /path/to/Dockerfile
$ sudo docker build .
View running processes
| # Add these lines to your dockerfile, before `npm install` | |
| # Copy the bitbucket private key to your docker image | |
| COPY ./bitbucket_ssh_key /opt/my-app | |
| # Copy the ssh script to your docker image | |
| COPY ./ssh-bitbucket.sh /opt/my-app | |
| # Tell git to use your `ssh-bitbucket.sh` script | |
| ENV GIT_SSH="/opt/map-project-tile-server/ssh-bitbucket.sh" |
| var webpack = require('webpack'); | |
| var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| var path = require('path'); | |
| var folders = { | |
| APP: path.resolve(__dirname, '../app'), | |
| BUILD: path.resolve(__dirname, '../build'), | |
| BOWER: path.resolve(__dirname, '../bower_components'), | |
| NPM: path.resolve(__dirname, '../node_modules') | |
| }; |
| # NOTE: Copy id_rsa.pub content to Bitbucket project Deployment keys | |
| Host bitbucket.org | |
| StrictHostKeyChecking no | |
| IdentityFile /app/.ssh/id_rsa | |
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |