mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-21 21:50:49 +02:00
fix(docker): handle .env file to read frontend vars during build easily (#513)
- Remove api/.env and .env from .dockerignore file - Add COPY .env .env to Dockerfile to copy .env file to docker build - Add RUN rm .env to Dockerfile to remove .env file after build - Remove build args from docker-compose.yml file
This commit is contained in:
parent
9d3e749104
commit
821b507e0e
3 changed files with 5 additions and 13 deletions
|
@ -23,9 +23,6 @@ services:
|
|||
build:
|
||||
context: .
|
||||
target: node
|
||||
args:
|
||||
VITE_APP_TITLE: LibreChat # default, change to your desired app name
|
||||
VITE_SHOW_GOOGLE_LOGIN_OPTION: false # default, change to true if you have google auth setup
|
||||
# image: chatgptclone/app:latest # Uncomment this & comment above to build from docker hub image
|
||||
restart: always
|
||||
# extra_hosts: # if you are running APIs on docker you need access to, you will need to uncomment this line and next
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue