A continuation of HomeBox the inventory and organization system built for the Home User
Adjust from Distroless to Alpine
Katos966ae9062ef8
diff --git a/Dockerfile.rootless b/Dockerfile.rootlessindex 6ea7c744..200bb3d9 100644--- a/Dockerfile.rootless+++ b/Dockerfile.rootless@@ -43,23 +43,20 @@ RUN --mount=type=cache,target=/root/.cache/go-build \# Change ownership of files to nonrootRUN chown -R nonroot:nonroot /go/bin/api /go/src/app-# Production stage with distroless-FROM gcr.io/distroless/base:latest+# Production stage with Alpine+FROM public.ecr.aws/docker/library/alpine:latestENV HBOX_MODE=productionENV HBOX_STORAGE_DATA=/data/ENV HBOX_STORAGE_SQLITE_URL=/data/homebox.db?_fk=1&_time_format=sqlite+# Install necessary runtime dependencies+RUN apk --no-cache add ca-certificates wget curl+# Copy the binary and data directoryCOPY --from=builder /go/bin/api /appCOPY --from=builder /data /data-# Copy curl and its dependencies from Alpine image into distroless-# Also copy the libraries that curl depends on (if required)-COPY --from=public.ecr.aws/docker/library/alpine:latest /lib/libssl.so.* /lib/-# Copy curl from alpine to the distroless image-COPY --from=public.ecr.aws/docker/library/alpine:latest /usr/bin/curl /usr/bin/curl-LABEL Name=homebox Version=0.0.1LABEL org.opencontainers.image.source="https://github.com/sysadminsmedia/homebox"EXPOSE 7745