From 54c7bd336557a976a74b97a95fa175141d3cd3cf Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Tue, 10 Sep 2024 13:43:52 -0600 Subject: [PATCH] Trying to fix dockerfile on building. Updating to version 3.1.8 --- .github/workflows/main-workflow.yml | 22 ++++++++++------------ Dockerfile | 6 +++++- version.txt | 2 +- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main-workflow.yml b/.github/workflows/main-workflow.yml index 9f18eee..601f587 100644 --- a/.github/workflows/main-workflow.yml +++ b/.github/workflows/main-workflow.yml @@ -1,4 +1,4 @@ -name: Build and Push Docker Images +name: Build and Push Docker Image ARM64 on: push: @@ -7,26 +7,24 @@ on: jobs: docker: runs-on: ubuntu-latest - strategy: - matrix: - platform: [amd64, arm64] steps: - - name: Checkout + - + name: Checkout uses: actions/checkout@v2 - - - name: Set up Docker Buildx + - + name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - - - name: Login to DockerHub + - + name: Login to DockerHub uses: docker/login-action@v1 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push + - + name: Build and push uses: docker/build-push-action@v2 with: context: . push: true tags: aleleba/vscode:latest - platforms: linux/${{ matrix.platform }} \ No newline at end of file + platforms: linux/amd64,linux/arm64 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index d51b7bf..0993fa8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,9 +28,13 @@ RUN ARCH="$(dpkg --print-architecture)" \ #devtunnel token TUNNELID --scope connect RUN curl -sL https://aka.ms/DevTunnelCliInstall | bash +# Configurar debconf para que use una interfaz no interactiva +ENV DEBIAN_FRONTEND=noninteractive + #Instalando VSCode RUN ARCH="$(dpkg --print-architecture)" \ - && sudo apt-get update && sudo apt-get install -y gnupg2 \ + && sudo apt-get update \ + && sudo apt-get install -y gnupg2 \ && sudo apt-get install -y software-properties-common \ && sudo wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add - \ && sudo add-apt-repository "deb [arch=${ARCH}] https://packages.microsoft.com/repos/vscode stable main" \ diff --git a/version.txt b/version.txt index d40b13a..dd9db9f 100755 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -3.1.7 \ No newline at end of file +3.1.8 \ No newline at end of file