From e3cfee0f2098a4f9eeeb14a117c51ab58087980e Mon Sep 17 00:00:00 2001 From: Alexander Voigt Date: Thu, 27 Jun 2024 12:03:33 +0200 Subject: [PATCH] chore: fix failing parcel build for ARM images --- Dockerfile | 3 +-- controller/web/template/.parcelrc | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 controller/web/template/.parcelrc diff --git a/Dockerfile b/Dockerfile index eae01cb..b722fee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,14 @@ FROM node:15.5.1-alpine3.12 as frontend COPY . /app +RUN apk add --update python3 make gcc g++ RUN cd /app/controller/web/template && npm install && npm run build FROM golang:1.17 as build ENV GOOS=linux ENV CGO_ENABLED=0 -ENV GOARCH=amd64 COPY . /app COPY --from=frontend /app/controller/web/template/dist /app/controller/web/template/dist/ RUN cd /app && go build -o vistecture . -RUN ls -l /app FROM alpine:latest RUN apk add --no-cache \ diff --git a/controller/web/template/.parcelrc b/controller/web/template/.parcelrc new file mode 100644 index 0000000..901678b --- /dev/null +++ b/controller/web/template/.parcelrc @@ -0,0 +1,6 @@ +{ + "extends": "@parcel/config-default", + "optimizers": { + "*.{jpg,jpeg,png}": [] + } +} \ No newline at end of file