@ -4,7 +4,7 @@ FROM node:8-alpine AS build
RUN apk add --no-cache curl gnupg make g++ bash python
# Note: context starts in directory above (see docker-compose file)
# Note: context starts in the directory above (see docker-compose file)
COPY server /var/www/server
WORKDIR /var/www/server
@ -14,7 +14,7 @@ RUN npm run build
FROM node:8-alpine
COPY server/package.json /var/www/server/
@ -5,9 +5,9 @@ module.exports = {
"useBabelrc": true,
"tsConfigFile": "tsconfig.jest.json"
},
"GIT_VERSION": "test_version",
"GIT_VERSION": "version",
"GIT_COMMITHASH": "test_commit_hash",
"GIT_COMMITHASH": "commit_hash",
"GIT_BRANCH": "test_branch"
"GIT_BRANCH": "branch"
"transform": {
"\\.ts": "ts-jest"
@ -8,7 +8,8 @@ import * as path from 'path';
import * as fs from 'fs';
import * as os from 'os';
// GIT_BRANCH, GIT_COMMITHASH, GIT_VERSION variables are defined by webpack
// TypeScript doesn't know that these variables exist
declare const GIT_BRANCH: string;
declare const GIT_COMMITHASH: string;
declare const GIT_VERSION: string;