1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-07 16:06:14 +00:00
Felix Bartels 7a04c93219
Prepare usage of build secrets (#303)
* sort .gitignore and add apt_auth.conf to it
* add helper to setup.sh to create apt_auth.conf (user still needs to enter their own credentials)
   * only create apt_auth.conf in make if it doesn't already exist
* add tooling to core dockerfile and makefile to use build secrets
* add ignore for hadolint as mounting syntax is currently not supported so far
* update to latest docker on travis for buildkit support
* documentation
* sort gitignore
* add dockerfile syntax definition for build args
2020-05-22 10:23:09 +02:00

30 lines
950 B
Docker

FROM alpine:3.11 as builder
RUN apk add --no-cache \
git make
RUN mkdir -p /web/oidc-playground /web/kapi-playground
RUN git clone https://stash.kopano.io/scm/~seisenmann/oidc-playground.git
RUN mv oidc-playground/www/* /web/oidc-playground
RUN git clone https://stash.kopano.io/scm/kc/kapi.git
RUN mv kapi/examples/* /web/kapi-playground
WORKDIR /web/kapi-playground
RUN rm Makefile && ln -s oidc-client-example.html index.html
FROM halverneus/static-file-server:v1.8.0
ARG CODE_VERSION
ENV PORT 8888
LABEL maintainer=az@zok.xyz \
org.label-schema.name="Kopano Playground" \
org.label-schema.description="Container for running Kopano playground applications for Kapi and OIDC" \
org.label-schema.url="https://kopano.io" \
org.label-schema.vcs-url="https://github.com/zokradonh/kopano-docker" \
org.label-schema.schema-version="1.0"
COPY --from=builder /web /web
ARG VCS_REF
LABEL org.label-schema.vcs-ref=$VCS_REF