Skip to content

Commit

Permalink
In Docker image, restore MANIFEST.MF, pom.xml, pom.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
lablans committed Mar 9, 2021
1 parent 2df180d commit a01c1c9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*
!src/docker
!target/connector/
!target/connector.war
!Dockerfile
12 changes: 11 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
ARG TOMCAT_IMAGE_VERSION=9-jdk8-openjdk-slim

FROM alpine:latest as extract

RUN apk add --no-cache unzip

ADD target/connector.war /connector/connector.war

RUN mkdir -p /connector/extracted && \
unzip /connector/connector.war -d /connector/extracted/

FROM tomcat:$TOMCAT_IMAGE_VERSION

## Define for which project this image is build
Expand All @@ -7,7 +17,7 @@ ENV PROJECT=$PROJECT

RUN ["rm", "-fr", "/usr/local/tomcat/webapps"]

COPY target/connector/ /usr/local/tomcat/webapps/ROOT/
COPY --from=extract /connector/extracted/ /usr/local/tomcat/webapps/ROOT/

# Adding fontconfig and libfreetype6 for rendering the BK Export, cf. https://stackoverflow.com/questions/55454036
RUN apt-get update && apt-get install -y fontconfig libfreetype6 && \
Expand Down

0 comments on commit a01c1c9

Please sign in to comment.