Skip to content

Instantly share code, notes, and snippets.

View belldoor's full-sized avatar
🏠
Working from home

Ahn, JongMoon belldoor

🏠
Working from home
View GitHub Profile
@belldoor
belldoor / Dockerfile
Created January 22, 2018 09:24 — forked from thaJeztah/Dockerfile
Alternative Dockerfile
FROM ubuntu:trusty
MAINTAINER Paul Bowsher <paul.bowsher@gmail.com>
RUN apt-get update && apt-get install -y -q \
build-essential \
git \
libssl-dev \
libsqlite3-dev \
nodejs \
ruby-dev \
process.env.WORKSPACE = process.env.WORKSPACE || '.';
const p = require(process.env.WORKSPACE + '/package.json');
const n = new Date();
const d = new Date(+n - (n.getTimezoneOffset() * 60000));
const v = p.version.split('-')[0] + '-test.' + d.toISOString().slice(0, 10);
console.log(p.version, '->', v);
p.version = v;
const exec = require('child_process').execSync;
const fs = require('fs');