17 lines
302 B
Docker
17 lines
302 B
Docker
# Create final image
|
|
FROM debian:latest
|
|
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
|
|
# Copy binary from builder
|
|
|
|
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"] |