-
Notifications
You must be signed in to change notification settings - Fork 33
/
Dockerfile
40 lines (30 loc) · 938 Bytes
/
Dockerfile
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
FROM eclipse-temurin:8-jdk-alpine
MAINTAINER Xetus OSS <[email protected]>
# Add the archiva user and group with a specific UID/GUI to ensure
RUN addgroup --gid 1000 archiva &&\
adduser --system -u 1000 -G archiva archiva &&\
apk add bash curl
# Set archiva-base as the root directory we will symlink out of.
ENV ARCHIVA_HOME /archiva
ENV ARCHIVA_BASE /archiva-data
ARG BUILD_SNAPSHOT_RELEASE
# Add local scripts
ADD files /tmp
# Perform most initialization actions in this layer
RUN chmod +x /tmp/resource-retriever.sh &&\
/tmp/resource-retriever.sh &&\
rm /tmp/resource-retriever.sh &&\
chmod +x /tmp/setup.sh &&\
/tmp/setup.sh &&\
rm /tmp/setup.sh
# Standard web ports exposted
EXPOSE 8080/tcp
HEALTHCHECK CMD /healthcheck.sh
# Switch to the archiva user
USER archiva
# The volume for archiva
VOLUME /archiva-data
# Use SIGINT for stopping
STOPSIGNAL SIGINT
# Use our custom entrypoint
ENTRYPOINT [ "/entrypoint.sh" ]