Skip to content

Commit

Permalink
完善镜像
Browse files Browse the repository at this point in the history
  • Loading branch information
lsgwr committed Nov 15, 2021
1 parent 6b11513 commit 046d82e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ FROM waterknife/centos-nginx-jdk8-mysql
WORKDIR /lsg/
COPY backend/target/*.jar ./app.jar
COPY entrypoint.sh ./
RUN /usr/sbin/init
EXPOSE 80
ENTRYPOINT ["sh","entrypoint.sh"]
1 change: 0 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
#!/bin/sh
/usr/sbin/init
nohup java -jar app.jar

0 comments on commit 046d82e

Please sign in to comment.