-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (26 loc) · 760 Bytes
/
Copy pathDockerfile
File metadata and controls
37 lines (26 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM docker.io/eclipse-temurin:25-jre
ARG VERSION=0.0.0
ARG COMMMIT_ID=HEAD
LABEL maintainer="Aquerr"
LABEL description="Futrzak Discord bot"
LABEL version="${VERSION}-${COMMMIT_ID}"
ENV APP_USER=appuser
ENV APP_GROUP=appgroup
RUN apt-get update \
&& apt-get install --update -y gosu \
&& rm -rf /var/lib/apt/lists/* \
gosu nobody true
RUN mkdir -p /opt/app/config \
&& mkdir -p /opt/app/data \
&& mkdir -p /opt/app/logs
ENV LANG="en_US.UTF-8"
ENV LANGUAGE="en_US:en"
ENV LC_ALL="en_US.UTF-8"
WORKDIR /opt/app
COPY build/libs/FutrzakBot-1.0-SNAPSHOT.jar .
COPY --chmod=755 entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
USER root
EXPOSE 8082
ENTRYPOINT ["/entrypoint.sh"]
CMD ["java", "-jar", "FutrzakBot-1.0-SNAPSHOT.jar"]