From 9211d7efc2d8c299c972cdd21ac01f4fa30ce54b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 27 Dec 2018 14:37:25 +0100 Subject: [PATCH] don't build files to dist, just get them from src MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- Dockerfile | 2 +- gulpfile.js | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 32936b9..2aca308 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ WORKDIR /app COPY package.json ./ RUN yarn install --production -COPY dist/ ./ +COPY src/ ./ ENV LOG_LEVEL=INFO \ LISTEN_PORT=8000 \ diff --git a/gulpfile.js b/gulpfile.js index 62ae5f3..921f9ea 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -27,11 +27,7 @@ gulp.task('testw', () => .pipe(mocha({reporter: 'list', watch: true})) ) -gulp.task('build', ['clean', 'test'], () => - gulp.src('src/**/*.js') - .pipe(print()) - .pipe(gulp.dest('dist/')) -) +gulp.task('build', ['clean', 'test']) gulp.task('image', ['build'], run('docker build -t statusteam/ghcmgr .'))