Skip to content

Commit

Permalink
Issue 110: Remove spurious COPY command that is sometimes causing pro…
Browse files Browse the repository at this point in the history
…blems.

Update the SOURCE_DIR as it doesn't need the leading slash.

The copy over build artifact in the maven stage is not used.
Remove it.
  • Loading branch information
kaladay committed May 2, 2022
1 parent 84ef278 commit e647e96
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
ARG USER_ID=3001
ARG USER_NAME=iriifservice
ARG HOME_DIR=/$USER_NAME
ARG SOURCE_DIR=/$HOME_DIR/source
ARG SOURCE_DIR=$HOME_DIR/source

# Maven stage.
FROM maven:3-openjdk-11-slim as maven
Expand Down Expand Up @@ -36,9 +36,6 @@ USER $USER_NAME
# Build.
RUN ["mvn", "package", "-Pjar", "-DskipTests=true"]

# Copy over the built artifact.
COPY ./target/ROOT.jar $HOME_DIR/iriif.jar

# Switch to Normal JRE Stage.
FROM openjdk:11-jre-slim
ARG USER_ID
Expand Down

0 comments on commit e647e96

Please sign in to comment.