Skip to content

Commit

Permalink
Run app as root in docker (#122)
Browse files Browse the repository at this point in the history
* Run app as root in docker

* Remove unused line
  • Loading branch information
koxudaxi committed Apr 15, 2021
1 parent 3bd842c commit a8fbbb0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions kotlin/local-data-api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
FROM openjdk:11.0.10-jre-slim-buster

ENV APPLICATION_USER ktor
RUN adduser --disabled-password --gecos '' $APPLICATION_USER

RUN mkdir /app
RUN chown -R $APPLICATION_USER /app

USER $APPLICATION_USER

COPY ./build/libs/local-data-api-*-all.jar /app/local-data-api.jar
WORKDIR /app
Expand Down

0 comments on commit a8fbbb0

Please sign in to comment.