1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-08-16 21:50:33 +03:00

fix: take .env in consideration when using Docker

This commit is contained in:
Louistiti 2019-06-06 09:06:48 +08:00
parent 88b81105e2
commit d38e6095f9
3 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,4 @@
node_modules/
bridges/python/.venv/*
.env
!bridges/python/.venv/.gitkeep

View File

@ -1,4 +1,5 @@
FROM node:10-alpine
ENV IS_DOCKER true
WORKDIR /app
# Install system packages

View File

@ -19,6 +19,8 @@ export default () => new Promise(async (resolve) => {
if (!fs.existsSync('.env')) {
createDotenv()
resolve()
} else if (process.env.IS_DOCKER === 'true') {
resolve()
} else {
const answer = await prompt({