diff --git a/cli/Dockerfile b/cli/Dockerfile index e865daa0..8820dde5 100644 --- a/cli/Dockerfile +++ b/cli/Dockerfile @@ -6,9 +6,6 @@ ENV VERSION=$APP_VERSION LABEL org.opencontainers.image.source=https://github.com/specmesh/specmesh-build/tree/main/cli -RUN yum update -y -RUN yum install -y tar lsof - RUN mkdir -p /opt/specmesh COPY bin /bin @@ -16,13 +13,9 @@ COPY log4j /log RUN chmod +x /bin/*.sh -COPY ${APP_NAME}-${APP_VERSION}.tar /opt/specmesh WORKDIR /opt/specmesh -RUN tar xf ${APP_NAME}-${APP_VERSION}.tar RUN ln -s ${APP_NAME}-${APP_VERSION} service - - ENTRYPOINT ["/bin/wrapper.sh"] #No CMD instruction is provided, allowing you to pass any number of arguments at runtime. \ No newline at end of file diff --git a/cli/build.gradle.kts b/cli/build.gradle.kts index bb03a1d8..6d4e8d1d 100644 --- a/cli/build.gradle.kts +++ b/cli/build.gradle.kts @@ -67,7 +67,7 @@ tasks.register("prepareDocker") { from( layout.projectDirectory.file("Dockerfile"), - layout.buildDirectory.file("distributions/${project.name}-${project.version}.tar"), + tarTree(layout.buildDirectory.file("distributions/${project.name}-${project.version}.tar")), layout.projectDirectory.dir("include"), )