Files
simple-object-server/Dockerfile
2025-05-25 14:37:38 +12:00

17 lines
293 B
Docker

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