Skip to content

Commit

Permalink
Update Dockerfiles to conform with best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
amrwc committed Mar 11, 2021
1 parent 95da2bc commit 21d0cb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM openjdk:11-jre-buster
FROM openjdk:11.0-jre-slim-buster

EXPOSE 8000
EXPOSE 8080
RUN addgroup --system spring
RUN adduser --system --no-create-home --ingroup spring spring
RUN addgroup --gid 10001 --system spring
RUN adduser --ingroup spring --no-create-home --system --uid 10000 spring

WORKDIR /home/project
COPY docker/entrypoint.sh entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile-gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gradle:jdk11
FROM gradle:6.8-jdk11

RUN mkdir -p /home/gradle/project/src/main
COPY build.gradle /home/gradle/project
Expand Down

0 comments on commit 21d0cb3

Please sign in to comment.