mirror of
https://github.com/openXC7/prjxray.git
synced 2026-08-29 17:28:53 +02:00
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]>
13 lines
530 B
Docker
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
|