Skip to content

Commit

Permalink
add docker build config
Browse files Browse the repository at this point in the history
  • Loading branch information
gcdd1993 committed Jun 3, 2021
0 parents commit 767c2b6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM adoptopenjdk/openjdk11-openj9:alpine-jre
LABEL app="sentinel dashboard" \
version="1.8.1" \
description="alibaba sentinel dashboard" \
author="https://gcdd1993.github.io"

WORKDIR /app
COPY releases/sentinel-dashboard-1.8.1.jar /app/sentinel-dashboard.jar

ENV DASHBOARD_PORT 8080
ENV USERNAME sentinel
ENV PASSWORD sentinel

EXPOSE $DASHBOARD_PORT
CMD ["java","-jar","/app/sentinel-dashboard.jar","-Dserver.port=$DASHBOARD_PORT","-Dcsp.sentinel.dashboard.server=localhost:$DASHBOARD_PORT","-Dproject.name=sentinel-dashboard","-Dauth.username=$USERNAME","-Dauth.password=$PASSWORD"]
Binary file added releases/sentinel-dashboard-1.8.1.jar
Binary file not shown.

0 comments on commit 767c2b6

Please # to comment.