File tree 5 files changed +17
-1
lines changed
5 files changed +17
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Environment variables
2
+ .env
3
+
1
4
# Gyp build artifacts
2
5
build
3
6
Original file line number Diff line number Diff line change
1
+ FROM node:8
2
+ WORKDIR /etherbot
3
+ COPY package.json /etherbot
4
+ RUN npm install -g yarn
5
+ COPY . /etherbot
6
+ CMD yarn start
7
+ EXPOSE 80
Original file line number Diff line number Diff line change 81
81
"dependencies" : {
82
82
"axios" : " ^0.18.0" ,
83
83
"circular-json" : " ^0.3.1" ,
84
+ "dotenv" : " ^6.0.0" ,
84
85
"lodash" : " ^4.17.4" ,
85
86
"prop-types" : " ^15.6.0" ,
86
87
"random-id" : " 0.0.2" ,
Original file line number Diff line number Diff line change
1
+ require ( 'dotenv' ) . config ( ) ;
1
2
const path = require ( 'path' ) ;
2
3
const ChunkHashReplacePlugin = require ( 'chunkhash-replace-webpack-plugin' ) ;
3
4
const CleanWebpackPlugin = require ( 'clean-webpack-plugin' ) ;
@@ -12,7 +13,7 @@ module.exports = {
12
13
devServer : {
13
14
contentBase : path . join ( __dirname , 'docs' ) ,
14
15
host : '0.0.0.0' ,
15
- port : 8080 ,
16
+ port : process . env . PORT || 8080 ,
16
17
disableHostCheck : true ,
17
18
} ,
18
19
resolve : {
Original file line number Diff line number Diff line change @@ -1892,6 +1892,10 @@ domutils@^1.5.1:
1892
1892
dom-serializer "0"
1893
1893
domelementtype "1"
1894
1894
1895
+ dotenv@^6.0.0 :
1896
+ version "6.0.0"
1897
+ resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-6.0.0.tgz#24e37c041741c5f4b25324958ebbc34bca965935"
1898
+
1895
1899
duplexer3@^0.1.4 :
1896
1900
version "0.1.4"
1897
1901
resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2"
You can’t perform that action at this time.
0 commit comments