From 31d5a250b535d5315605cb628cac1de5c59a5c9d Mon Sep 17 00:00:00 2001 From: MrTuxedo Date: Sun, 23 Apr 2023 11:14:02 -0700 Subject: [PATCH] Don't import .env explicitly --- Dockerfile | 1 - README.md | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5037075..5aa0ad5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index 2e3ec57..a921dbe 100644 --- a/README.md +++ b/README.md @@ -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= @@ -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.