mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
The compat image's ubi9-minimal:9.7 ships openssl-libs-3.5.1-7.el9_7, which is below the 3.5.5-4.el9_8 that Red Hat fixed CVE-2026-45445 in. ubi9-minimal:9.8 ships 3.5.8-1.el9_8, so the bump is the remediation. The native bases move with it for currency rather than for that CVE: ubi9-micro ships no openssl at either tag, on any architecture. It picks up glibc 2.34-231.el9_7.10 to 2.34-275.el9_8 plus libcap and tzdata, and keeps both images on one RHEL minor stream, which matters because the compat image builds on top of the native one. Package contents were read from the Red Hat container catalog for every architecture the images publish.
53 lines
2.4 KiB
Docker
53 lines
2.4 KiB
Docker
FROM registry.access.redhat.com/ubi9-micro:9.8
|
|
|
|
# Automatically set by Docker BuildKit to "amd64" or "arm64"
|
|
ARG TARGETARCH
|
|
|
|
WORKDIR /app
|
|
|
|
# ubi9-micro has no shadow-utils, so the runtime user is one /etc/passwd line.
|
|
RUN echo 'floci:x:1001:0:Floci:/app:/sbin/nologin' >> /etc/passwd \
|
|
&& mkdir -p /app/data \
|
|
&& chown -R 1001:root /app \
|
|
&& chmod -R g+rwX /app
|
|
|
|
VOLUME /app/data
|
|
|
|
COPY --chmod=755 docker/entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
|
COPY --chmod=755 docker/localstack-parity.sh docker/healthcheck.sh /usr/local/bin/
|
|
|
|
ARG VERSION=latest
|
|
ENV FLOCI_VERSION=${VERSION}
|
|
ENV FLOCI_STORAGE_PERSISTENT_PATH=/app/data
|
|
# A binary built in the Quarkus builder container (make native) links zlib dynamically, since
|
|
# that image has no zlib-static, and ubi9-micro ships no libz.so.1; the Makefile stages the
|
|
# library next to the binary and this is what lets the loader find it. The workflows build
|
|
# with a host Mandrel that links zlib statically, so their images carry no such file.
|
|
ENV LD_LIBRARY_PATH=/app
|
|
COPY --chmod=755 --chown=1001:root native/${TARGETARCH}/ /app/
|
|
|
|
LABEL org.opencontainers.image.title="Floci" \
|
|
org.opencontainers.image.description="Local AWS emulator — open-source alternative to LocalStack Community" \
|
|
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" \
|
|
description="Local AWS emulator — open-source alternative to LocalStack Community" \
|
|
io.k8s.description="Local AWS emulator — open-source alternative to LocalStack Community" \
|
|
io.k8s.display-name="Floci" \
|
|
io.openshift.expose-services="4566:tcp" \
|
|
io.openshift.tags="floci aws-emulator" \
|
|
maintainer="Floci <https://github.com/floci-io/floci>" \
|
|
name="floci/floci" \
|
|
summary="Local AWS emulator — open-source alternative to LocalStack Community" \
|
|
url="https://floci.io" \
|
|
vendor="Floci"
|
|
|
|
EXPOSE 4566
|
|
|
|
HEALTHCHECK --interval=5s --timeout=3s --retries=5 CMD ["/usr/local/bin/healthcheck.sh"]
|
|
|
|
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
|
# A published port needs 0.0.0.0 inside the container, which Floci only accepts with explicit consent.
|
|
CMD ["/app/application", "-Dquarkus.http.host=0.0.0.0", "-Dfloci.security.allow-unsafe-network-exposure=true"]
|