-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 1001 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 1001 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
FROM node:24.14.1-slim
ARG BUILD_DATE
ARG APP_VERSION
LABEL org.opencontainers.image.authors='Martin Reinhardt (martin@m13t.de)' \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.version=$APP_VERSION \
org.opencontainers.image.url='https://hub.docker.com/r/continuoussecuritytooling/keycloak-reporting-cli' \
org.opencontainers.image.documentation='https://github.com/ContinuousSecurityTooling/keycloak-reporter' \
org.opencontainers.image.source='https://github.com/ContinuousSecurityTooling/keycloak-reporter.git' \
org.opencontainers.image.licenses='MIT'
ENV CONFIG_FILE=/app/config.json
COPY dist/ docker_entrypoint.sh package.json /app
WORKDIR /app
RUN npm install --omit=dev &&\
chown -R 1000:2000 /app
# apt update
RUN apt-get update && apt-get -y upgrade &&\
# clean up to slim image
apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/
USER 1000
ENTRYPOINT ["/app/docker_entrypoint.sh"]