-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
46 lines (35 loc) · 1.72 KB
/
Copy pathContainerfile
File metadata and controls
46 lines (35 loc) · 1.72 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
# --------------------------------------------------------------------------
# THIS FILE IS AUTOGENERATED - DO NOT EDIT MANUALLY
#
# Source: Containerfile.j2
# --------------------------------------------------------------------------
ARG BASE_VERSION=latest
FROM ghcr.io/daemonless/nginx-base:${BASE_VERSION}
ARG APP_VER=1.3
ARG FREEBSD_ARCH=amd64
LABEL org.opencontainers.image.title="Daemonless pkg cache" \
org.opencontainers.image.description="Managed FreeBSD pkg caching appliance — speeds up FreeBSD package fetches across image builds." \
org.opencontainers.image.source="https://github.com/daemonless/pkg-cache" \
org.opencontainers.image.url="https://daemonless.io/images/pkg-cache/" \
org.opencontainers.image.licenses="BSD-2-Clause" \
org.opencontainers.image.vendor="daemonless" \
org.opencontainers.image.authors="daemonless" \
io.daemonless.category="Infrastructure" \
io.daemonless.port="80" \
io.daemonless.volumes="/config,/cache" \
io.daemonless.healthcheck-url="http://localhost:80/healthz" \
io.daemonless.arch="${FREEBSD_ARCH}"
RUN mkdir -p /app && echo "${APP_VER}" > /app/version
# GoAccess for the optional real-time stats dashboard (ENABLE_STATS=true).
RUN pkg install -y sysutils/goaccess && pkg clean -ay && rm -rf /var/cache/pkg/*
# Copy appliance root filesystem. The nginx s6 service comes from nginx-base;
# this image renders the managed proxy config at startup.
COPY root/ /
RUN chmod +x \
/etc/cont-init.d/20-pkg-cache-init \
/etc/services.d/goaccess/run \
/etc/services.d/pkg-cache-access-log/run \
/etc/services.d/pkg-cache-error-log/run
EXPOSE 80 7890
# Logs, generated stats, and cache storage
VOLUME ["/config", "/cache"]