Skip to content

Commit

Permalink
Descriptors directory is required to compile in the build and run Doc…
Browse files Browse the repository at this point in the history
…kerfile.

The addition of the `/descriptors` did not take into account the build and run Dockerfile.

For safety reasons, use a sub-directory for building rather than building at the file system root.
  • Loading branch information
kaladay committed Nov 14, 2023
1 parent 4ffc836 commit 6e1cf8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker/build_and_run/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN mkdir /mod-camunda
WORKDIR /mod-camunda

# copy required files
COPY ./pom.xml ./pom.xml
COPY ./src ./src
COPY ./descriptors ./descriptors

# build
RUN mvn package
Expand All @@ -27,7 +31,7 @@ RUN apt-get update && \
WORKDIR /mod-camunda

# copy over the built artifact from the maven image
COPY --from=maven /target/mod-camunda*.jar ./mod-camunda.jar
COPY --from=maven /mod-camunda/target/mod-camunda*.jar ./mod-camunda.jar

# environment
ENV SERVER_PORT='9000'
Expand Down

0 comments on commit 6e1cf8d

Please sign in to comment.