Files
simple-object-server/Dockerfile
Your Name ef97829556
Some checks failed
Build-Test-Publish / Build (push) Failing after 32s
:-'Generic Commit'
2025-05-30 23:14:03 +12:00

21 lines
390 B
Docker

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