Skip to content

Commit

Permalink
Add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbarnett91 committed Sep 7, 2023
1 parent ef9885b commit 33518f8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM eclipse-temurin:17-alpine
COPY ./build/libs/energy-label-service-SNAPSHOT.jar app.jar

RUN apk update && apk upgrade && rm -rf /var/cache/apk/*

ENV TZONE="Europe/London"
RUN apk add --update tzdata \
&& echo "${TZONE}" > /etc/timezone \
&& ln -sf /usr/share/zoneinfo/${TZONE} /etc/localtime

RUN adduser -S elg
USER elg

ENTRYPOINT exec java $JAVA_OPTS -jar app.jar

0 comments on commit 33518f8

Please sign in to comment.