Files
floci/docker/Dockerfile.compat
T
Hector Ventura 0123844d83 chore(docker): add OCI image metadata labels (#872)
* chore(docker): add OCI image metadata labels

Add OCI image spec labels to Dockerfile.native-package, Dockerfile.jvm-package,
and Dockerfile.compat so published images carry standard metadata.

Static labels (title, description, url, source, licenses, vendor) are baked into
the Dockerfiles and are present in every build including local ones. Dynamic labels
(version, revision, created) are injected at publish time via the labels: input of
build-push-action in release.yml and nightly.yml.

Closes #851

* chore: setting not opencontainers labels
2026-05-17 00:25:24 -05:00

27 lines
885 B
Docker

ARG VERSION=latest
FROM floci/floci:${VERSION}
LABEL org.opencontainers.image.title="Floci (compat)" \
org.opencontainers.image.description="Floci compatibility image with AWS CLI and boto3 pre-installed" \
org.opencontainers.image.url="https://floci.io" \
org.opencontainers.image.source="https://github.com/floci-io/floci" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.vendor="Floci"
ENV AWS_DEFAULT_REGION=us-east-1
ENV AWS_ACCESS_KEY_ID=test
ENV AWS_SECRET_ACCESS_KEY=test
ENV AWS_ENDPOINT_URL="http://localhost:4566"
ENV AWS_CONFIG_FILE=/etc/floci/aws/config
USER root
RUN microdnf install -y --nodocs python3 python3-pip \
&& pip3 install --no-cache-dir awscli boto3 \
&& microdnf clean all \
&& rm -rf /root/.cache/pip
COPY bin/awslocal /usr/local/bin/awslocal
RUN chmod +x /usr/local/bin/awslocal
USER 1001