-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile-debian.template
More file actions
40 lines (30 loc) · 981 Bytes
/
Dockerfile-debian.template
File metadata and controls
40 lines (30 loc) · 981 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
38
39
40
#
# Copyright (C) 2020 Curity AB. All rights reserved.
#
# The contents of this file are the property of Curity AB.
# You may not copy or use this file, in either source code
# or executable form, except in compliance with terms
# set by Curity AB.
#
# For further information, please contact Curity AB.
#
FROM debian:bookworm
LABEL maintainer="Curity AB <[email protected]>"
ARG TARGETARCH
EXPOSE 8443
EXPOSE 6749
EXPOSE 4465
EXPOSE 4466
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y openssl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN groupadd --system --gid 10000 idsvr && useradd --system --no-create-home --uid 10001 --gid 10000 idsvr
ENV IDSVR_HOME /opt/idsvr
ENV JAVA_HOME $IDSVR_HOME/lib/java/jre
ENV PATH $IDSVR_HOME/bin:$JAVA_HOME/bin:$PATH
WORKDIR $IDSVR_HOME
COPY --chown=10001:10000 idsvr-{{VERSION}}-${TARGETARCH}/idsvr /opt/idsvr
COPY --chown=10001:10000 first-run /opt/idsvr/etc/first-run
USER 10001:10000
CMD ["idsvr"]