-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile.pkg
More file actions
53 lines (43 loc) · 1.84 KB
/
Containerfile.pkg
File metadata and controls
53 lines (43 loc) · 1.84 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
# --------------------------------------------------------------------------
# THIS FILE IS AUTOGENERATED - DO NOT EDIT MANUALLY
#
# Source: Containerfile.pkg.j2
# --------------------------------------------------------------------------
ARG BASE_VERSION=15
FROM ghcr.io/daemonless/base:${BASE_VERSION}
ARG FREEBSD_ARCH=amd64
ARG PKG_NAME=homepage
ARG HEALTHCHECK_ENDPOINT="http://localhost:3000/"
ENV HEALTHCHECK_URL="${HEALTHCHECK_ENDPOINT}"
# --- Metadata (Injected by Generator) ---
LABEL org.opencontainers.image.title="Homepage" \
org.opencontainers.image.description="Modern, fully static, fast, secure and highly customizable application dashboard with integrations for over 100 services." \
org.opencontainers.image.source="https://github.com/daemonless/homepage" \
org.opencontainers.image.url="https://gethomepage.dev/" \
org.opencontainers.image.licenses="GPL-3.0" \
org.opencontainers.image.vendor="daemonless" \
org.opencontainers.image.authors="daemonless" \
io.daemonless.category="Utilities" \
io.daemonless.port="3000" \
io.daemonless.volumes="/config" \
io.daemonless.pkg-name="${PKG_NAME}" \
io.daemonless.arch="${FREEBSD_ARCH}" \
io.daemonless.healthcheck-url="${HEALTHCHECK_ENDPOINT}"
# Install from FreeBSD packages
RUN pkg update && \
pkg install -y ${PKG_NAME} && \
mkdir -p /app && \
pkg query '%v' ${PKG_NAME} > /app/version && \
pkg clean -ay && \
rm -rf /var/cache/pkg/* /var/db/pkg/repos/*
# Create config directory
RUN mkdir -p /config && \
chown -R bsd:bsd /config /usr/local/www/homepage
# Copy service definition
COPY root/ /
# Make scripts executable
RUN chmod +x /etc/services.d/homepage/run /etc/cont-init.d/* 2>/dev/null || true
# --- Expose (Injected by Generator) ---
EXPOSE 3000
# --- Volumes (Injected by Generator) ---
VOLUME /config