Split up package pull and build

This commit is contained in:
Melody Becker 2025-05-10 12:02:41 +02:00
parent b363b87013
commit 4f64f0b847
Signed by: mstar
SSH key fingerprint: SHA256:vkXfS9FG2pVNVfvDrzd1VW9n8VJzqqdKQGljxxX8uK8

View file

@ -2,13 +2,15 @@ FROM docker.io/node:22 AS build-ember
# TODO: Implement ember frontend build
COPY . /app
WORKDIR /app/frontend-reactive
RUN npm install && npm run build
RUN npm install
RUN npm run build
FROM docker.io/golang:1.24 AS build-go
# TODO: Implement golang build
COPY --from=build-ember /app /app
WORKDIR /app
RUN GOTOOLCHAIN=auto GOSUMDB=sum.golang.org go get
RUN CGO_ENABLED=0 GOTOOLCHAIN=auto GOSUMDB=sum.golang.org go build -o /app/linstrom .
# FROM fedora:latest AS release