Update docker build process
This commit is contained in:
1 parent
1d26918fb3
commit
6544e982c6
5 files changed
+132
-7
No files matched your search
+10
-2
@@ -1,12 +1,20 @@
|
||||
FROM openjdk:17-jdk-slim
|
||||
|
||||
RUN apt-get -y update
|
||||
RUN apt-get -y install netcat
|
||||
RUN apt-get -y install curl
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ARG API_PORT=9000
|
||||
EXPOSE ${API_PORT}
|
||||
|
||||
COPY .mvn/ .mvn
|
||||
COPY mvnw pom.xml ./
|
||||
COPY src ./src
|
||||
COPY bot.properties.example bot.properties ./
|
||||
COPY startup.sh ./
|
||||
|
||||
RUN ./mvnw -q -Dmaven.test.skip=true package
|
||||
RUN ./mvnw install
|
||||
|
||||
CMD ["java", "-jar", "target/netneutrality-jar-with-dependencies.jar"]
|
||||
CMD ["./startup.sh"]
|
||||
Reference in new issue
Block a user