Update riot build
This commit is contained in:
parent
8a284bbe63
commit
4a664b6e30
|
@ -1,4 +1,4 @@
|
|||
FROM vectorim/riot-web:VERSION as builder
|
||||
FROM vectorim/element-web:VERSION as builder
|
||||
|
||||
FROM arm64v8/nginx:mainline-alpine
|
||||
|
||||
|
|
19
riot/Dockerfile.v1.8.1-r0
Normal file
19
riot/Dockerfile.v1.8.1-r0
Normal file
|
@ -0,0 +1,19 @@
|
|||
FROM vectorim/element-web:v1.8.1-r0 as builder
|
||||
|
||||
FROM arm64v8/nginx:mainline-alpine
|
||||
|
||||
RUN apk add tini
|
||||
RUN sed -i '3i\ \ \ \ application/wasm wasm\;' /etc/nginx/mime.types
|
||||
|
||||
COPY --from=builder /app /app
|
||||
COPY init.sh /usr/local/bin/init.sh
|
||||
|
||||
RUN set -xe; \
|
||||
rm -rf /usr/share/nginx/html; \
|
||||
ln -s /app /usr/share/nginx/html; \
|
||||
mkdir /etc/riot-web
|
||||
|
||||
VOLUME /etc/riot-web
|
||||
|
||||
ENTRYPOINT ["/sbin/tini", "--"]
|
||||
CMD ["init.sh", "nginx", "-g", "daemon off;"]
|
|
@ -22,7 +22,7 @@ function print_help() {
|
|||
|
||||
require "$TAG" tag
|
||||
|
||||
if ! docker run --rm -it arm64v8/ubuntu:19.10 /bin/bash -c 'echo "docker is configured correctly"'; then
|
||||
if ! sudo docker run --rm -it arm64v8/ubuntu:19.10 /bin/bash -c 'echo "docker is configured correctly"'; then
|
||||
echo "docker is not configured to run on qemu-emulated architectures, fixing will require sudo"
|
||||
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||
fi
|
||||
|
@ -31,7 +31,7 @@ set -xe
|
|||
|
||||
sed "s/VERSION/$TAG/g" Dockerfile > "Dockerfile.$TAG"
|
||||
|
||||
docker build \
|
||||
sudo docker build \
|
||||
--pull \
|
||||
--no-cache \
|
||||
-f "Dockerfile.$TAG" \
|
||||
|
@ -40,8 +40,8 @@ docker build \
|
|||
-t asonix/riot-web:latest \
|
||||
.
|
||||
|
||||
docker push "asonix/riot-web:$TAG-arm64v8"
|
||||
docker push asonix/riot-web:latest-arm64v8
|
||||
docker push asonix/riot-web:latest
|
||||
sudo docker push "asonix/riot-web:$TAG-arm64v8"
|
||||
sudo docker push asonix/riot-web:latest-arm64v8
|
||||
sudo docker push asonix/riot-web:latest
|
||||
|
||||
rm "Dockerfile.$TAG"
|
||||
|
|
Loading…
Reference in a new issue