This commit is contained in:
20
Dockerfile.sos
Normal file
20
Dockerfile.sos
Normal file
@@ -0,0 +1,20 @@
|
||||
# Create final image
|
||||
FROM alpine:latest
|
||||
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
|
||||
# Copy binary from builder
|
||||
|
||||
RUN apk add --no-cache wget curl bash jq
|
||||
|
||||
RUN mkdir -p /sos && mkdir -p /data/storage
|
||||
|
||||
COPY --chmod=0755 output/simple-object-server /sos/sos
|
||||
COPY testing/ /testing/
|
||||
|
||||
# Expose port
|
||||
EXPOSE 80
|
||||
|
||||
# Run server (assuming config is mounted at /data/sos_config.json)
|
||||
CMD ["/sos/sos"]
|
Reference in New Issue
Block a user