mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 11:05:03 +01:00
Use target platform (rather than build platform) for multi-platform container images
Signed-off-by: Matthew Cengia <mattcen@mattcen.com>
This commit is contained in:
parent
bd6ab1d5de
commit
d763e69799
@ -15,7 +15,7 @@ RUN yarn build
|
|||||||
RUN mv -f target/config.json /config.json.bundled \
|
RUN mv -f target/config.json /config.json.bundled \
|
||||||
&& ln -sf /tmp/config.json target/config.json
|
&& ln -sf /tmp/config.json target/config.json
|
||||||
|
|
||||||
FROM --platform=${BUILDPLATFORM} docker.io/nginxinc/nginx-unprivileged:alpine
|
FROM --platform=${TARGETPLATFORM} docker.io/nginxinc/nginx-unprivileged:alpine
|
||||||
|
|
||||||
# Copy the dynamic config script
|
# Copy the dynamic config script
|
||||||
COPY ./docker/dynamic-config.sh /docker-entrypoint.d/99-dynamic-config.sh
|
COPY ./docker/dynamic-config.sh /docker-entrypoint.d/99-dynamic-config.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user