Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
96400c03
Unverified
Commit
96400c03
authored
Mar 25, 2020
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐳
Docker 镜像加入 Git 提交哈希值环境变量 Fix #82
parent
7bbb7a80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
.github/workflows/dockerimage.yml
.github/workflows/dockerimage.yml
+1
-1
Dockerfile
Dockerfile
+3
-0
No files found.
.github/workflows/dockerimage.yml
View file @
96400c03
...
...
@@ -11,5 +11,5 @@ jobs:
-
name
:
Build the Docker image
run
:
|
docker login --username=${{ secrets.DOCKER_HUB_USER }} --password=${{ secrets.DOCKER_HUB_PWD }}
docker build -t b3log/solo:latest .
docker build -
-build-arg git_commit=$(git rev-parse --short HEAD) -
t b3log/solo:latest .
docker push b3log/solo
Dockerfile
View file @
96400c03
...
...
@@ -13,6 +13,9 @@ COPY --from=MVN_BUILD /opt/solo/ /opt/solo/
RUN
apk add
--no-cache
ca-certificates tzdata
ENV
TZ=Asia/Shanghai
ARG
git_commit=0
ENV
git_commit=$git_commit
EXPOSE
8080
ENTRYPOINT
[ "java", "-cp", "lib/*:.", "org.b3log.solo.Server" ]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment