Skip to content

Commit

Permalink
chore: fix failing parcel build for ARM images
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt committed Jun 27, 2024
1 parent f5e670e commit e3cfee0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
6 changes: 6 additions & 0 deletions controller/web/template/.parcelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "@parcel/config-default",
"optimizers": {
"*.{jpg,jpeg,png}": []
}
}

0 comments on commit e3cfee0

Please sign in to comment.