mirror of
https://github.com/tiennm99/store-scraper-bot-java.git
synced 2026-05-19 17:29:12 +00:00
Add Docker support and environment configuration
Introduced Dockerfile, .dockerignore, and example environment file for containerization. Added compose.yml for Docker Compose setup and renamed docker-compose.dev.yml to compose.dev.yml. Updated build.gradle.kts for Java 21 and shadow plugin, and improved .gitignore and .gitattributes. Refactored Config.java to reorder ENV initialization.
This commit is contained in:
@@ -8,8 +8,6 @@ import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class Config {
|
||||
public static final Env ENV = Env.valueOf(System.getenv("ENV"));
|
||||
|
||||
public static final String COUCHBASE_CONNECTION_STRING =
|
||||
System.getenv("COUCHBASE_CONNECTION_STRING");
|
||||
public static final String COUCHBASE_USERNAME = System.getenv("COUCHBASE_USERNAME");
|
||||
@@ -19,7 +17,7 @@ public class Config {
|
||||
public static final String TELEGRAM_BOT_TOKEN = System.getenv("TELEGRAM_BOT_TOKEN");
|
||||
public static final String TELEGRAM_BOT_USERNAME = System.getenv("TELEGRAM_BOT_USERNAME");
|
||||
|
||||
public static final Long CREATOR_ID = Long.parseLong(System.getenv("CREATOR_ID"));
|
||||
public static final Env ENV = Env.valueOf(System.getenv("ENV"));
|
||||
public static final Set<Long> ADMIN_IDS =
|
||||
Optional.ofNullable(System.getenv("ADMIN_IDS"))
|
||||
.map(
|
||||
|
||||
Reference in New Issue
Block a user