
Build the docker image for the new package index REST API on each merge/push to develop and master.
12 lines
319 B
Docker
12 lines
319 B
Docker
FROM ubuntu:18.04 AS build-env
|
|
WORKDIR /build
|
|
RUN apt-get update && apt-get install -y jq
|
|
COPY packages.json ./
|
|
COPY split.sh ./
|
|
RUN /build/split.sh
|
|
|
|
FROM nginx:mainline-alpine
|
|
COPY --from=build-env --chown=nginx:nginx /build/packages /build/packages.json /usr/share/nginx/html/api/
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|