-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile.j2
More file actions
23 lines (20 loc) · 927 Bytes
/
Copy pathContainerfile.j2
File metadata and controls
23 lines (20 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ARG BASE_VERSION=15.1-pkg-latest
FROM ghcr.io/daemonless/base-core:${BASE_VERSION}
ARG PKG_NAME
ARG FREEBSD_ARCH=amd64
LABEL org.opencontainers.image.title="Python" \
org.opencontainers.image.description="Python is an interpreted object-oriented programming language, and is often compared to Tcl, Perl or Scheme." \
org.opencontainers.image.source="https://github.com/daemonless/python" \
org.opencontainers.image.url="https://www.python.org/" \
org.opencontainers.image.licenses="PSFL" \
org.opencontainers.image.vendor="daemonless" \
org.opencontainers.image.authors="daemonless" \
io.daemonless.category="Base" \
io.daemonless.arch="${FREEBSD_ARCH}"
# Install dependencies
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/*