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:
parent
88b81105e2
commit
d38e6095f9
@ -1,5 +1,4 @@
|
||||
node_modules/
|
||||
bridges/python/.venv/*
|
||||
|
||||
.env
|
||||
!bridges/python/.venv/.gitkeep
|
||||
|
@ -1,4 +1,5 @@
|
||||
FROM node:10-alpine
|
||||
ENV IS_DOCKER true
|
||||
WORKDIR /app
|
||||
|
||||
# Install system packages
|
||||
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user