-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile.microos
24 lines (21 loc) · 1.08 KB
/
Dockerfile.microos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM opensuse/tumbleweed AS build-stage
WORKDIR /src
RUN zypper clean && zypper ref -f && zypper --non-interactive install --no-recommends mandoc go make git cpio openssl
RUN mkdir -p rpm2docserv
COPY . rpm2docserv/
RUN cd rpm2docserv && make VERSION=$(git show -s --format=%cd.%h --date=format:%Y%m%d)
RUN mkdir -p /srv/docserv && rpm2docserv/bin/rpm2docserv -config rpm2docserv/example-configs/microos.yaml
FROM registry.opensuse.org/opensuse/nginx:latest
LABEL maintainer="Thorsten Kukuk <[email protected]>"
ARG BUILDTIME=
ARG VERSION=unreleased
LABEL org.opencontainers.image.title="openSUSE MicroOS Manpages Server"
LABEL org.opencontainers.image.description="Manual pages to browse with a web server."
LABEL org.opencontainers.image.created=$BUILDTIME
LABEL org.opencontainers.image.version=$VERSION
COPY --from=build-stage /srv/docserv /srv/docserv
COPY --from=build-stage /src/rpm2docserv/bin/* /usr/local/bin
COPY nginx/nginx.conf /usr/local/nginx/etc/
COPY nginx/*.sh /docker-entrypoint.d/
COPY --from=build-stage /usr/bin/openssl /usr/bin/
COPY --from=build-stage /etc/ssl/openssl.cnf /etc/ssl/