Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiansirch authored Jul 9, 2021
1 parent e5de81c commit c5e775b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM openjdk:11-slim
COPY target/k8s-demo-app.jar app.jar
RUN groupadd -g 1000 appuser && \
useradd -u 1000 -g 1000 appuser
USER appuser

EXPOSE 8080/tcp
ENTRYPOINT ["java","-jar","/app.jar"]

0 comments on commit c5e775b

Please sign in to comment.