Skip to content

Commit

Permalink
#62: Add Dockerfile for backend
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-markl authored and RoAnBu committed Dec 10, 2020
1 parent 9428cf1 commit 1487340
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
12 changes: 12 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM gradle:jdk8 AS build
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle build --no-daemon
RUN unzip /home/gradle/src/build/distributions/backend.zip -d /output

FROM openjdk:8-jre-slim
EXPOSE 8080

RUN mkdir /backend
COPY --from=build /output/* /backend/
ENTRYPOINT ["/backend/bin/backend"]
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
version: "3.3"
services:
backend:
build: ./backend/
ports:
- 127.0.0.1:8080:8080
depends_on:
- martin
- adminer
- db_postgis
- style
martin:
build: ./docker/martin
volumes:
Expand Down

0 comments on commit 1487340

Please sign in to comment.