docker multi-platform release support

This commit is contained in:
奶茶说
2023-01-06 03:17:01 +00:00
parent 96c31c5b97
commit 141836832d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -29,4 +29,4 @@ jobs:
password: ${{ secrets.DOCKER_HUB_PASS }} password: ${{ secrets.DOCKER_HUB_PASS }}
- name: Build the Docker image - name: Build the Docker image
run: docker buildx build --push --platform linux/amd64,linux/arm64,linux/386 -t tardis07/oneforall:latest . run: docker buildx build --push --platform linux/amd64,linux/arm64,linux/i386 -t tardis07/oneforall:latest .
+1 -1
View File
@@ -1,5 +1,5 @@
FROM --platform=$TARGETPLATFORM python:3.8-alpine3.10 FROM --platform=$TARGETPLATFORM python:3.8-alpine3.10
MAINTAINER milktea@vmoe.info LABEL maintainer="milktea@vmoe.info"
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk update && apk --no-cache add git build-base libffi-dev libxml2-dev libxslt-dev libressl-dev RUN apk update && apk --no-cache add git build-base libffi-dev libxml2-dev libxslt-dev libressl-dev