You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
406 B

  1. FROM golang:1.16 AS builder
  2. WORKDIR /workdir
  3. COPY . .
  4. RUN make build
  5. FROM alpine:3.13
  6. ENV CONFIG=/config/server.conf
  7. RUN adduser -D spreedbackend && \
  8. apk add --no-cache ca-certificates libc6-compat libstdc++
  9. USER spreedbackend
  10. COPY --from=builder /workdir/bin/signaling /usr/local/signaling
  11. COPY ./server.conf.in /config/server.conf
  12. CMD ["/bin/sh", "-c", "/usr/local/signaling --config=$CONFIG"]