Rename and implement dockerfile
This commit is contained in:
parent
f2616c041b
commit
227a9e377f
1 changed files with 15 additions and 1 deletions
|
@ -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
|
Loading…
Reference in a new issue