-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (46 loc) · 1.63 KB
/
Copy pathDockerfile
File metadata and controls
56 lines (46 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
ARG DIR=/go/src/galene
ARG VERSION=1.0
ARG WAIT_VERSION=2.9.0
ARG VCS_REF=98ae363da2b5ce5efaedb3c83cf0c4667bedb9ed
FROM golang:alpine AS builder
ARG DIR
ARG VERSION
ARG VCS_REF
RUN apk --no-cache add git \
&& git clone --depth 1 --branch master https://github.com/Paloys/galene-headless.git ${DIR}
WORKDIR ${DIR}
RUN git reset --hard ${VCS_REF}
RUN CGO_ENABLED=0 go build -ldflags='-s -w'
WORKDIR ${DIR}/galenectl
RUN go build -ldflags='-s -w'
FROM alpine
ARG DIR
ARG VERSION
ARG TARGET_DIR=/opt/galene
ARG VCS_REF
ARG WAIT_VERSION
ARG WAIT_BIN=/docker-init.d/01-docker-compose-wait
RUN mkdir -p ${TARGET_DIR}/groups/
#LABEL maintainer=""
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.name="galene"
LABEL org.label-schema.description="Docker image for the Galène videoconference server"
LABEL org.label-schema.url="https://galene.org/"
LABEL org.label-schema.vcs-url="https://github.com/suitenumerique/gallene-deployment"
LABEL org.label-schema.vcs-ref="${VCS_REF}"
LABEL org.label-schema.vendor="jech"
LABEL org.label-schema.version="${VERSION}"
# Temporarily pushed to paloys/galene
LABEL org.label-schema.docker.cmd="docker run -it -p 8443:8443 paloys/galene:latest -turn ''"
EXPOSE 8443
EXPOSE 1194/tcp
EXPOSE 1194/udp
COPY --from=builder ${DIR}/LICENCE ${TARGET_DIR}/
COPY --from=builder ${DIR}/galene ${TARGET_DIR}/
COPY --from=builder ${DIR}/static/ ${TARGET_DIR}/static/
COPY --from=builder ${DIR}/galenectl/galenectl /bin
COPY docker-root/ /
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/${WAIT_VERSION}/wait ${WAIT_BIN}
RUN chmod 0755 ${WAIT_BIN}
WORKDIR ${TARGET_DIR}
ENTRYPOINT ["/docker-init.sh"]