mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
- This should ultimately help for image-to-code back references. - `org.label-schema.*` labels are now deprecated, in favour of `org.opencontainers.image.*` labels. See also: https://github.com/opencontainers/image-spec/blob/master/annotations.md#back-compatibility-with-label-schema - Git revision (`git rev-parse HEAD`) is now injected at `docker build` time.
18 lines
669 B
Docker
18 lines
669 B
Docker
FROM ubuntu
|
|
RUN apt-get update && \
|
|
apt-get install -y nginx && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
RUN rm /etc/nginx/sites-available/default && \
|
|
ln -sf /dev/stdout /var/log/nginx/access.log && \
|
|
ln -sf /dev/stderr /var/log/nginx/error.log
|
|
COPY default.conf /etc/nginx/conf.d/
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|
|
|
|
ARG revision
|
|
LABEL maintainer="Weaveworks <help@weave.works>" \
|
|
org.opencontainers.image.title="example-frontend" \
|
|
org.opencontainers.image.source="https://github.com/weaveworks/scope/tree/master/extras/example/frontend" \
|
|
org.opencontainers.image.revision="${revision}" \
|
|
org.opencontainers.image.vendor="Weaveworks"
|