Files
prjxray/Dockerfile
T
Rick Altherr a7081164bd Force amd64 image for nginx
Per https://github.com/docker-library/official-images/issues/3835,
multi-arch official images are currently updated as each architecture's
builder finishes. This leads to times when the latest tags only have a
few architectures available.  Since our builds only happen on amd64,
pull nginx from the amd64 namespace specifically to avoid the problem.

Signed-off-by: Rick Altherr <[email protected]>
2018-02-27 10:12:10 -08:00

13 lines
530 B
Docker

ARG DEV_ENV_IMAGE
FROM ${DEV_ENV_IMAGE} AS db_builder
ARG NUM_PARALLEL_JOBS=1
COPY . /source
RUN cd /source && make -j${NUM_PARALLEL_JOBS} --output-sync=target --warn-undefined-variables database
RUN find /source/database -mindepth 1 -maxdepth 1 -type d -exec /source/htmlgen/htmlgen.py --settings={}/settings.sh --output=/output/html \;
RUN mkdir -p /output/raw && find /source/database -mindepth 1 -maxdepth 1 -type d -exec cp -R {} /output/raw \;
FROM amd64/nginx:alpine
COPY --from=db_builder /output /usr/share/nginx/html