Rename and implement dockerfile

This commit is contained in:
Melody Becker 2025-04-11 11:11:34 +02:00
parent f2616c041b
commit 227a9e377f
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI

View file

@ -1,10 +1,24 @@
FROM docker.io/node:22 AS build-ember FROM docker.io/node:22 AS build-ember
# TODO: Implement ember frontend build # 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 FROM docker.io/golang:1.23 AS build-go
# TODO: Implement golang build # 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 # 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 # OCI labels, following https://github.com/opencontainers/image-spec/blob/main/annotations.md
# Make this one dynamic # Make this one dynamic