From 227a9e377f9e70f4e9eb1caf11e207f0b88a600e Mon Sep 17 00:00:00 2001 From: mstar Date: Fri, 11 Apr 2025 11:11:34 +0200 Subject: [PATCH] Rename and implement dockerfile --- Containerfile => Dockerfile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) rename Containerfile => Dockerfile (82%) diff --git a/Containerfile b/Dockerfile similarity index 82% rename from Containerfile rename to Dockerfile index d386db5..91e950d 100644 --- a/Containerfile +++ b/Dockerfile @@ -1,10 +1,24 @@ 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 + FROM docker.io/golang:1.23 AS build-go # TODO: Implement golang build -FROM gcr.io/distroless/static-debian12:latest as release + +COPY --from=build-ember /app /app +WORKDIR /app +RUN CGO_ENABLED=0 go build -o /app/linstrom . + +# FROM fedora:latest AS release +FROM alpine:3 AS release # TODO: Implement final release container +COPY --from=build-go /app/linstrom /linstrom + +ENTRYPOINT ["/linstrom"] + # OCI labels, following https://github.com/opencontainers/image-spec/blob/main/annotations.md # Make this one dynamic