remove armv7 and add ddtrace command to docker

This commit is contained in:
Alberto Xamin 2022-04-06 16:19:03 +02:00
parent df1a381909
commit 94735d1775
2 changed files with 2 additions and 12 deletions

View File

@ -42,16 +42,6 @@ jobs:
--output "type=image,push=false" \ --output "type=image,push=false" \
--tag albertoxamin/bang:dev \ --tag albertoxamin/bang:dev \
--file ./Dockerfile ./ --file ./Dockerfile ./
-
name: Docker Buildx (build armv-7)
run: |
docker buildx build \
--cache-from "type=local,src=/tmp/.buildx-cache" \
--cache-to "type=local,dest=/tmp/.buildx-cache" \
--platform linux/arm/v7 \
--output "type=image,push=false" \
--tag albertoxamin/bang:dev \
--file ./Dockerfile ./
- -
name: Login to DockerHub name: Login to DockerHub
uses: docker/login-action@v1 uses: docker/login-action@v1
@ -63,7 +53,7 @@ jobs:
run: | run: |
docker buildx build \ docker buildx build \
--cache-from "type=local,src=/tmp/.buildx-cache" \ --cache-from "type=local,src=/tmp/.buildx-cache" \
--platform linux/amd64,linux/arm/v7,linux/arm64 \ --platform linux/amd64,linux/arm64 \
--output "type=image,push=true" \ --output "type=image,push=true" \
--tag albertoxamin/bang:dev \ --tag albertoxamin/bang:dev \
--file ./Dockerfile ./ --file ./Dockerfile ./

View File

@ -8,4 +8,4 @@ RUN RUN apt-get update && apt-get install -y \
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
EXPOSE 5001 EXPOSE 5001
ENTRYPOINT ["python", "/code/__init__.py"] ENTRYPOINT ["ddtrace-run", "python", "/code/__init__.py"]