#109 move last url to new layout*A
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 1m6s
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 1m6s
This commit is contained in:
27
Dockerfile
27
Dockerfile
@@ -1,17 +1,22 @@
|
||||
FROM golang:1.23@sha256:613a108a4a4b1dfb6923305db791a19d088f77632317cfc3446825c54fb862cd AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum main.go ./
|
||||
COPY src src
|
||||
RUN go build -o /bin/api ./main.go
|
||||
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 debian:stable-slim@sha256:382967fd7c35a0899ca3146b0b73d0791478fba2f71020c7aa8c27e3a4f26672
|
||||
FROM node:22.7.0 AS BUILDER_NODE
|
||||
WORKDIR /me-fit
|
||||
COPY . ./
|
||||
RUN npm install && npm run build
|
||||
|
||||
RUN apt-get update && apt-get install -y ca-certificates
|
||||
WORKDIR /app
|
||||
COPY --from=builder /bin/api ./api
|
||||
|
||||
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 ["/app/api"]
|
||||
ENTRYPOINT ["/me-fit/me-fit"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user