variables de entorno fuera

This commit is contained in:
2025-03-13 18:50:35 +01:00
parent 1031fa2732
commit 9ca1d41e2a
3 changed files with 5 additions and 8 deletions

View File

@ -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

View File

@ -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() {

View File

@ -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: