From 102dc3873e63156c792384755f1789a9a8031927 Mon Sep 17 00:00:00 2001 From: Alberto Date: Tue, 22 Jun 2021 10:35:45 +0200 Subject: [PATCH] add back other stuff --- .github/workflows/dev-image.yml | 4 ++-- Dockerfile | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dev-image.yml b/.github/workflows/dev-image.yml index 2a5684b..79edcf7 100644 --- a/.github/workflows/dev-image.yml +++ b/.github/workflows/dev-image.yml @@ -28,7 +28,7 @@ jobs: docker buildx build \ --cache-from "type=local,src=/tmp/.buildx-cache" \ --cache-to "type=local,dest=/tmp/.buildx-cache" \ - --platform linux/arm/v7 \ + --platform linux/amd64,linux/arm/v7,linux/arm64 \ --output "type=image,push=false" \ --tag albertoxamin/bang:dev \ --file ./Dockerfile ./ @@ -43,7 +43,7 @@ jobs: run: | docker buildx build \ --cache-from "type=local,src=/tmp/.buildx-cache" \ - --platform linux/arm/v7 \ + --platform linux/amd64,linux/arm/v7,linux/arm64 \ --output "type=image,push=true" \ --tag albertoxamin/bang:dev \ --file ./Dockerfile ./ diff --git a/Dockerfile b/Dockerfile index 2fe67b8..6e955f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -# FROM node:lts-alpine as builder -# COPY ./frontend . -# RUN npm install -# RUN npm run build +FROM node:lts-alpine as builder +COPY ./frontend . +RUN npm install +RUN npm run build FROM python:3.7 -# COPY --from=builder ./dist /dist/ +COPY --from=builder ./dist /dist/ COPY ./backend /dist/ WORKDIR /dist RUN pip install -r requirements.txt