diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5dc27e0..881ac7f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -2,7 +2,7 @@ name: Build Docker Image on: push: - branches: [ main ] + branches: [ main, master ] workflow_dispatch: jobs: @@ -31,7 +31,7 @@ jobs: with: context: . file: ./Dockerfile - platforms: linux/amd64,linux/arm/v7,linux/arm64 + platforms: linux/amd64 push: true tags: | flotte-docker-registry.spdns.org/frontend-server:latest diff --git a/Dockerfile b/Dockerfile index 9ca613e..a4bc160 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM node:14.14.0-alpine3.10 AS builder WORKDIR / COPY package.json package-lock.json ./ -RUN apk add --no-cache python3 +RUN apk add --no-cache python3 build-base RUN npm install && npm install -g @angular/cli && mkdir frontend RUN mv node_modules ./frontend WORKDIR /frontend