Skip to content
Permalink
Browse files

Update Docker files

  • Loading branch information...
barograf committed Sep 26, 2018
1 parent 247f287 commit 8f65f6ad2daaacb3438f49506e400a598ceeb831
@@ -1 +1,2 @@
#!/usr/bin/env node
export {};
@@ -1,7 +1,10 @@
#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const dotenv = require("dotenv");
const BABELSHEET_ENV_PATH = '.env.babelsheet';
dotenv.config();
dotenv.config({ path: BABELSHEET_ENV_PATH });
const container_1 = require("./container");
const container = container_1.default();
process.on('uncaughtException', err => {
@@ -1 +1,2 @@
#!/usr/bin/env node
export {};
@@ -1,7 +1,10 @@
#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const dotenv = require("dotenv");
const BABELSHEET_ENV_PATH = '.env.babelsheet';
dotenv.config();
dotenv.config({ path: BABELSHEET_ENV_PATH });
const await_to_js_1 = require("await-to-js");
const schedule = require("node-schedule");
const ramda = require("ramda");
@@ -1,17 +1,25 @@
version: '3'
services:
babelsheet-api:
image: tsh/babelsheet-api
image: tshio/babelsheet-api:latest
build:
context: .
dockerfile: docker/api/Dockerfile
env_file:
- .env
- .env.babelsheet
ports:
- "3000:3000"
depends_on:
- redis
babelsheet-producer:
image: tsh/babelsheet-producer
image: tshio/babelsheet-producer:latest
build:
context: .
dockerfile: docker/producer/Dockerfile
env_file:
- .env
- .env.babelsheet
depends_on:
- redis
redis:
@@ -6,7 +6,7 @@ COPY package.json .

RUN npm i --production

COPY . /app
COPY ./build /app/build

EXPOSE 3000

@@ -6,7 +6,7 @@ COPY package.json .

RUN npm i --production

COPY . /app
COPY ./build /app/build

EXPOSE 3000

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,5 +1,9 @@
#!/usr/bin/env node
import * as dotenv from 'dotenv';

const BABELSHEET_ENV_PATH = '.env.babelsheet';
dotenv.config();
dotenv.config({ path: BABELSHEET_ENV_PATH });

import { ILogger } from 'tsh-node-common';
import createContainer from './container';
@@ -1,5 +1,9 @@
#!/usr/bin/env node
import * as dotenv from 'dotenv';

const BABELSHEET_ENV_PATH = '.env.babelsheet';
dotenv.config();
dotenv.config({ path: BABELSHEET_ENV_PATH });

import to from 'await-to-js';
import * as schedule from 'node-schedule';

0 comments on commit 8f65f6a

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