Skip to content

Commit

Permalink
Fjernet feilende steg i Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ttessem committed Jul 26, 2024
1 parent a0cd466 commit a680beb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,5 @@ RUN if [ "$TARGETARCH" = "amd64" ]; then \

COPY --from=build /build/libs/*.jar /app/backend.jar

RUN adduser --uid 150 --disabled-password --gecos "" user && \
chown -R user:user /app /usr/local/bin /app/logs /app/tmp

# Bytt til non-root user
USER user

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

0 comments on commit a680beb

Please sign in to comment.