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