Files
simple-object-server/Dockerfile
Your Name df6de22a1a
Some checks failed
Build-Test-Publish / Build (push) Failing after 31s
:-'Generic Commit'
2025-05-30 22:11:58 +12:00

19 lines
391 B
Docker

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