Update docker build process

This commit is contained in:
anthorob committed 2022-06-23 11:57:26 -04:00
1 parent 1d26918fb3
commit 6544e982c6
5 files changed
+132 -7

No files matched your search

+10 -2
View File
@@ -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"]