Skip to content

Commit f8ddf26

Browse files
committed
Add dockerfile to run as container
1 parent fa388dd commit f8ddf26

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

DockerFile

Lines changed: 0 additions & 4 deletions
This file was deleted.

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM ubuntu:latest
2+
ARG MVN_VERSION
3+
4+
WORKDIR /InsideAgentBot
5+
COPY ./out/Bot/InsideAgentDev-${MVN_VERSION}.jar app.jar
6+
COPY ./out/Bot/config/* ./config/
7+
8+
RUN apt-get update \
9+
&& apt-get install -y \
10+
wget \
11+
maven \
12+
&& rm -rf /var/lib/apt/lists/*
13+
RUN wget https://download.oracle.com/java/24/latest/jdk-24_linux-x64_bin.deb
14+
RUN dpkg -i jdk-24_linux-x64_bin.deb
15+
RUN rm jdk-24_linux-x64_bin.deb
16+
17+
ENTRYPOINT ["java","-jar","app.jar"]

0 commit comments

Comments
 (0)