dockerisation
This commit is contained in:
20
kiszolgalo/Dockerfile
Normal file
20
kiszolgalo/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
# Stage 1: Cache Gradle dependencies
|
||||
FROM gradle:9.1.0-jdk21 AS build
|
||||
RUN mkdir -p /home/gradle/cache_home
|
||||
ENV GRADLE_USER_HOME=/home/gradle/cache_home
|
||||
COPY build.gradle.* gradle.properties /home/gradle/app/
|
||||
COPY gradle /home/gradle/app/gradle
|
||||
WORKDIR /home/gradle/app
|
||||
RUN gradle dependencies --no-daemon
|
||||
|
||||
COPY --chown=gradle:gradle . /home/gradle/src
|
||||
WORKDIR /home/gradle/src
|
||||
# and boot JAR by default.
|
||||
RUN gradle buildFatJar --no-daemon
|
||||
|
||||
# Stage 2: Create the Runtime Image
|
||||
FROM amazoncorretto:21 AS runtime
|
||||
EXPOSE 8080
|
||||
RUN mkdir /app
|
||||
COPY --from=build /home/gradle/src/build/libs/*.jar /app/ktor-docker-sample.jar
|
||||
ENTRYPOINT ["java","-jar","/app/ktor-docker-sample.jar"]
|
||||
6
kiszolgalo/docker-compose.yml
Normal file
6
kiszolgalo/docker-compose.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
backup-scheduler:
|
||||
image: kotlin:latest
|
||||
container_name: "bs"
|
||||
ports:
|
||||
- "8080:80"
|
||||
@@ -12,7 +12,7 @@ import kotlin.random.Random
|
||||
|
||||
//átlagos JAVA alapú fejlesztő
|
||||
|
||||
val httpPort: Int = System.getenv("HTTP_PORT")?.toInt() ?: 8080
|
||||
val httpPort: Int = System.getenv("HTTP_PORT")?.toInt() ?: 80
|
||||
val resourcesPath: String = System.getenv("RESOURCES") ?: "src/main/resources/"
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ object ConversationHandler {
|
||||
return num
|
||||
}
|
||||
}
|
||||
|
||||
fun listAllConversations(): String
|
||||
{
|
||||
val stringBuilder = StringBuilder()
|
||||
@@ -39,6 +40,8 @@ object ConversationHandler {
|
||||
stringBuilder.append(conversation.list())
|
||||
}
|
||||
|
||||
println(stringBuilder.toString())
|
||||
|
||||
return stringBuilder.toString()
|
||||
|
||||
}
|
||||
|
||||
@@ -8,64 +8,60 @@
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="main-flexbox">
|
||||
|
||||
<div class="main-flexbox">
|
||||
<header class="navbar">
|
||||
<a href="https://sc0tt.org/" style="float: left" target="_blank">Sc0tt főoldal</a>
|
||||
<a href="/" style="float: left">Lets ask some shit bayBEE</a>
|
||||
|
||||
<header class="navbar">
|
||||
<a href="https://sc0tt.org/" style="float: left" target="_blank">Sc0tt főoldal</a>
|
||||
<a href="/resources/about.html" style="float: left">About</a>
|
||||
<img src="resources/logo.png" alt=logo" style="float: right;">
|
||||
|
||||
<img src="resources/logo.png" alt=logo" style="float: right;">
|
||||
<a href="javascript:void(0);"
|
||||
class="icon"
|
||||
onclick="toggleMenu()">
|
||||
☰
|
||||
</a>
|
||||
</header>
|
||||
|
||||
<a href="javascript:void(0);"
|
||||
class="icon"
|
||||
onclick="toggleMenu()">
|
||||
☰
|
||||
</a>
|
||||
</header>
|
||||
<div class="about-content">
|
||||
<h1>We're on a mission</h1>
|
||||
|
||||
<div class="about-content">
|
||||
<h1>We're on a mission</h1>
|
||||
<h2>To give slow, unreliable information sometimes. If we feel like it.</h2>
|
||||
|
||||
<h2>To give slow, unreliable information sometimes. If we feel like it.</h2>
|
||||
<p>
|
||||
Our revolutionary technology enables us to create a cost-effective GS (Genuine Stupidity) companion for you to rely on. Our model is using 21 years of
|
||||
training data, specialized in internet culture, STEM and being miserable. It is using less energy, and less water than almost all AI models on the market
|
||||
in 2026. Uses a lot more whiskey-coke tho.
|
||||
|
||||
<p>
|
||||
Our revolutionary technology enables us to create a cost-effective GS (Genuine Stupidity) companion for you to rely on. Our model is using 21 years of
|
||||
training data, specialized in internet culture, STEM and being miserable. It is using less energy, and less water than almost all AI models on the market
|
||||
in 2026. Uses a lot more whiskey-coke tho.
|
||||
</p>
|
||||
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<br>
|
||||
<h2>
|
||||
Straight to the point
|
||||
</h2>
|
||||
|
||||
<h2>
|
||||
Straight to the point
|
||||
</h2>
|
||||
<p>
|
||||
Unlike most modern AI models, our GS model is not going to sugar-coat every response. Of course class matters, which is why with our patent pending
|
||||
algorithm every response is dripping with authenticity, while managing to stay extremely polite.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Unlike most modern AI models, our GS model is not going to sugar-coat every response. Of course class matters, which is why with our patent pending
|
||||
algorithm every response is dripping with authenticity, while managing to stay extremely polite.
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<br>
|
||||
<h2>
|
||||
Privacy first and foremost
|
||||
</h2>
|
||||
|
||||
<h2>
|
||||
Privacy first and foremost
|
||||
</h2>
|
||||
<p>
|
||||
Powered by an incredibly abstract, high level language, our backend is built from the ground up with privacy in mind. Our developer, after trying
|
||||
to use more than 1 Gradle dependency in the backend realized, that not storing user data in a database is a good thing, actually. Very marketable.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Powered by an incredibly abstract, high level language, our backend is built from the ground up with privacy in mind. Our developer, after trying
|
||||
to use more than 1 Gradle dependency in the backend realized, that not storing user data in a database is a good thing, actually. Very marketable.
|
||||
</p>
|
||||
<br>
|
||||
|
||||
<br>
|
||||
|
||||
<h2 style="font-style: italic;">,,You make soup in a big bowl. You serve it in a smaller bowl. And then you convey it, using a spoon, to your mouth. But what is the spoon? Simply a smaller bowl still"</h2>
|
||||
<h3>-user 'autophage' on tumblr</h3>
|
||||
<h2 style="font-style: italic;">,,You make soup in a big bowl. You serve it in a smaller bowl. And then you convey it, using a spoon, to your mouth. But what is the spoon? Simply a smaller bowl still"</h2>
|
||||
<h3>-user 'autophage' on tumblr</h3>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
})
|
||||
.then(data => {
|
||||
|
||||
document.getElementById("messages").innerHTML = data + '<footer> <div class="textbox"><input class="text_input" name="valami" type="text" id="promptText" placeholder="answ"><button class="send_button" onclick="send_data()">send</button></div></footer>';
|
||||
document.getElementById("messages").innerHTML = data + '<footer> <div class="textbox"><input class="text_input" name="valami" type="text" id="promptText" placeholder="answ"><button class="send_button" onclick="send_data()">send</button><button class="send_button" onclick="open_message(' + answid + ')">reload</button></div></footer>';
|
||||
|
||||
console.log(data.body)
|
||||
})
|
||||
|
||||
@@ -21,10 +21,10 @@ body {
|
||||
display: flex;
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
justify-content: center;*/
|
||||
box-sizing: border-box;*/
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
height: 93vh;
|
||||
height: 80vh;
|
||||
overflow-y: scroll;
|
||||
flex-grow: 8
|
||||
|
||||
@@ -153,8 +153,6 @@ footer {
|
||||
padding: 10px;
|
||||
background: #212121;
|
||||
bottom: 0;
|
||||
|
||||
background: green;
|
||||
}
|
||||
|
||||
.navbar a {
|
||||
|
||||
Reference in New Issue
Block a user