Files
iot-test-platform/Dockerfile
lzh 9725251424
Some checks failed
JT808 CI/CD / build-and-deploy (push) Has been cancelled
fix: cicd-调整4
2025-12-12 16:04:30 +08:00

22 lines
464 B
Docker

# Build Stage
FROM maven:3.9.9-eclipse-temurin-17 AS build
WORKDIR /app
COPY pom.xml .
COPY src ./src
RUN mvn -B clean package -DskipTests
# Run Stage
FROM eclipse-temurin:17-jre-alpine
WORKDIR /app
VOLUME /tmp
# Copy the built jar from the build stage
COPY --from=build /app/target/*.jar app.jar
# Expose Web Port and JT808 TCP Port
EXPOSE 8080
EXPOSE 20048
# Run the application
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","app.jar"]