# Create final image FROM alpine:latest ARG TARGETOS ARG TARGETARCH # Copy binary from builder RUN apk update && apk add --no-cache curl bash wget gzip && rm -rf /var/cache/apk/* RUN mkdir -p /sos COPY --chmod=0755 exe/simple_object_storage-${TARGETOS}-${TARGETARCH} /sos/sos # Expose port EXPOSE 80 # Run server (assuming config is mounted at /data/config.json) CMD ["/sos/sos"]