Skip to content
Permalink
Browse files

Set up a Docker build pipeline

  • Loading branch information
Huddo121 committed Jun 27, 2016
1 parent b3350b4 commit 80499feab30af5630439b74baf894a70e9f7c63e
Showing with 14 additions and 0 deletions.
  1. +3 −0 .dockerignore
  2. +5 −0 Dockerfile
  3. +5 −0 gulpfile.js
  4. +1 −0 package.json
@@ -0,0 +1,3 @@
# Ignore everything except for the target directory
*
!target/
@@ -0,0 +1,5 @@
FROM nginx

EXPOSE 80

COPY target /usr/share/nginx/html
@@ -6,6 +6,7 @@ var rjs = require('gulp-requirejs-optimize');
var less = require('gulp-less');
var autoprefixer = require('gulp-autoprefixer');
var sourcemaps = require('gulp-sourcemaps');
var shell = require('gulp-shell');

var config = {
src: './src',
@@ -106,3 +107,7 @@ gulp.task('browsersync', ['watch'], function() {
};
browserSync(bsConfig);
});

gulp.task('docker', ['site'], shell.task([
'docker build -t honours-project .'
]));
@@ -13,6 +13,7 @@
"gulp-changed": "^1.3.0",
"gulp-less": "^3.0.5",
"gulp-requirejs-optimize": "^0.3.1",
"gulp-shell": "^0.5.2",
"gulp-sourcemaps": "^1.6.0",
"gulp-util": "^3.0.7"
},

0 comments on commit 80499fe

Please sign in to comment.
You can’t perform that action at this time.