Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
vladi14 committed Nov 11, 2023
1 parent c4dcf1a commit 181f721
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/github-actions-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
file: Dockerfile
push: true
tags: |
vladipik/maven-hello-world:${{ github.event.after }}
maven-hello-world:latest
# - name: Push Docker Image to Docker Hub
# run: |
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM openjdk:11-jre-slim
RUN useradd -u 10001 myuser
USER myuser
RUN ls -l
COPY myapp/target/myapp-*.jar /app.jar
# WORKDIR /app
RUN ls -l
EXPOSE 8080
CMD ["java", "-jar", "app.jar"]
ENTRYPOINT ["java", "-jar", "app.jar"]
# CMD ["java", "-jar", "app.jar"]

0 comments on commit 181f721

Please sign in to comment.