Files
simple-object-server/Dockerfile
Your Name 43666a3247
Some checks failed
Build-Test-Publish / Build (push) Failing after 26s
:-'Generic Commit'
2025-05-30 22:06:38 +12:00

18 lines
324 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
# Expose port
EXPOSE 80
# Run server (assuming config is mounted at /data/sos_config.json)
CMD ["/sos/sos"]