variables de entorno fuera
This commit is contained in:
@ -8,7 +8,7 @@ WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
# Construir el JAR con Gradle
|
||||
RUN ./gradlew build -x test
|
||||
RUN ./gradlew build
|
||||
|
||||
# Imagen final con solo el JAR
|
||||
FROM eclipse-temurin:17-jdk
|
||||
|
@ -17,10 +17,10 @@ import java.util.Map;
|
||||
@Component
|
||||
public class TelegramBot extends TelegramLongPollingBot {
|
||||
|
||||
@Value("${telegram.bot.username}")
|
||||
private String BOT_USERNAME;
|
||||
@Value("${telegram.bot.token}")
|
||||
private String BOT_TOKEN;
|
||||
//@Value("${telegram.bot.username}")
|
||||
private String BOT_USERNAME = "Inversionitas_Bot";
|
||||
//@Value("${telegram.bot.token}")
|
||||
private String BOT_TOKEN = "7626026035:AAHEMp_iIN3y8AwywL0R6OTQvNi7EcJZ0iY";
|
||||
|
||||
@Override
|
||||
public String getBotUsername() {
|
||||
|
@ -24,9 +24,6 @@ services:
|
||||
restart: always
|
||||
ports:
|
||||
- "8180:8080"
|
||||
environment:
|
||||
- TELEGRAM_BOT_TOKEN=Inversionitas_Bot
|
||||
- TELEGRAM_BOT_USERNAME=7626026035:AAHEMp_iIN3y8AwywL0R6OTQvNi7EcJZ0iY
|
||||
depends_on:
|
||||
- app
|
||||
networks:
|
||||
|
Reference in New Issue
Block a user