Skip to content

Commit a8fbbb0

Browse files
authored
Run app as root in docker (#122)
* Run app as root in docker * Remove unused line
1 parent 3bd842c commit a8fbbb0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

kotlin/local-data-api/Dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
FROM openjdk:11.0.10-jre-slim-buster
22

3-
ENV APPLICATION_USER ktor
4-
RUN adduser --disabled-password --gecos '' $APPLICATION_USER
5-
63
RUN mkdir /app
7-
RUN chown -R $APPLICATION_USER /app
8-
9-
USER $APPLICATION_USER
104

115
COPY ./build/libs/local-data-api-*-all.jar /app/local-data-api.jar
126
WORKDIR /app

0 commit comments

Comments
 (0)