Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #30 from priyamm/dev
Browse files Browse the repository at this point in the history
Added Dockerfile to build docker images
  • Loading branch information
Fulton Browne committed Oct 13, 2019
2 parents edc0c40 + 345b562 commit 245d1b6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM alpine/git:1.0.7 as clone
WORKDIR /app
RUN git clone https://github.com/FultonBrowne/Ara-Server.git


FROM openjdk:8-jdk-alpine as build
WORKDIR /app
COPY --from=clone /app/Ara-Server /app
RUN ./gradlew build

FROM openjdk:8-jre-alpine
WORKDIR /app
COPY --from=build /app/bin/jar /app
EXPOSE 80
ENTRYPOINT ["sh", "-c"]
CMD ["java -jar Ara-Server.jar"]

0 comments on commit 245d1b6

Please sign in to comment.