Don't import .env explicitly

This commit is contained in:
MrTuxedo 2023-04-23 11:14:02 -07:00
parent 20185635fb
commit 31d5a250b5
2 changed files with 2 additions and 3 deletions

View File

@ -19,5 +19,4 @@ RUN npm install --omit=dev
FROM node:18-slim
WORKDIR /usr/app
COPY --from=ts-remover /usr/app ./
COPY .env ./
CMD node index.js

View File

@ -18,7 +18,7 @@ This repo contains Docker build files for a Discord bot built with Node.js and u
git clone https://git.ssh.surf/MrTuxedo/gwei-alert-bot.git
```
2. Create a .env file in the root of the project and add the following environment variables:
2. Add the following environment variables to the runtime container via `docker-compose.yml`:
```makefile
RPC_URL=<your rpc url>
@ -54,7 +54,7 @@ docker compose up -d --build
## Environment Variables
The following environment variables must be set in either `.env` or `docker-compose.yml` in order for the bot to function properly:
The following environment variables must be set in `docker-compose.yml` in order for the bot to function properly:
- RPC_URL: Your RPC url
- DISCORD_BOT_TOKEN: the Oauth2 token for your Discord bot.