Skip to content

Commit

Permalink
create Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
ludovicm67 committed Jan 25, 2022
1 parent a806404 commit 85939e2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**/target/
.project
.settings
.classpath
/target/
.git
.github
Dockerfile
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM docker.io/library/openjdk:11-bullseye

EXPOSE 8080

RUN apt update \
&& apt install -y maven \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app

COPY . .
RUN mvn clean package

WORKDIR /app/service/target
RUN unzip meecrowave-meecrowave-distribution.zip

WORKDIR /app/service/target/meecrowave-distribution

CMD [ "./bin/meecrowave.sh", "run" ]

0 comments on commit 85939e2

Please sign in to comment.