All checks were successful
Build and Push Docker Image / Explore-Gitea-Actions (push) Successful in 53s
23 lines
535 B
Docker
23 lines
535 B
Docker
FROM golang:1.23.0 AS builder_go
|
|
WORKDIR /me-fit
|
|
RUN go install github.com/a-h/templ/cmd/templ@latest
|
|
COPY . ./
|
|
RUN templ generate && go build -o /me-fit/me-fit .
|
|
|
|
|
|
FROM node:22.7.0 AS builder_node
|
|
WORKDIR /me-fit
|
|
COPY . ./
|
|
RUN npm install && npm run build
|
|
|
|
|
|
FROM debian:12.6
|
|
WORKDIR /me-fit
|
|
RUN apt-get update && apt-get install -y ca-certificates && echo "" > .env
|
|
COPY --from=builder_go /me-fit/me-fit ./me-fit
|
|
COPY --from=builder_node /me-fit/static ./static
|
|
COPY migrations ./migrations
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/me-fit/me-fit"]
|
|
|