Files
simple-object-server/Dockerfile
Your Name 807e7904e5 .
2025-05-03 18:00:16 +12:00

20 lines
388 B
Docker

# 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"]