fix warning
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
FROM golang:1.23.0 AS BUILDER_GO
|
FROM golang:1.23.0 AS builder_go
|
||||||
WORKDIR /me-fit
|
WORKDIR /me-fit
|
||||||
RUN go install github.com/a-h/templ/cmd/templ@latest
|
RUN go install github.com/a-h/templ/cmd/templ@latest
|
||||||
COPY . ./
|
COPY . ./
|
||||||
RUN templ generate && go build -o /me-fit/me-fit .
|
RUN templ generate && go build -o /me-fit/me-fit .
|
||||||
|
|
||||||
|
|
||||||
FROM node:22.7.0 AS BUILDER_NODE
|
FROM node:22.7.0 AS builder_node
|
||||||
WORKDIR /me-fit
|
WORKDIR /me-fit
|
||||||
COPY . ./
|
COPY . ./
|
||||||
RUN npm install && npm run build
|
RUN npm install && npm run build
|
||||||
@@ -14,8 +14,8 @@ RUN npm install && npm run build
|
|||||||
FROM debian:12.6
|
FROM debian:12.6
|
||||||
WORKDIR /me-fit
|
WORKDIR /me-fit
|
||||||
RUN apt-get update && apt-get install -y ca-certificates && echo "" > .env
|
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_go /me-fit/me-fit ./me-fit
|
||||||
COPY --from=BUILDER_NODE /me-fit/static ./static
|
COPY --from=builder_node /me-fit/static ./static
|
||||||
COPY migrations ./migrations
|
COPY migrations ./migrations
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
ENTRYPOINT ["/me-fit/me-fit"]
|
ENTRYPOINT ["/me-fit/me-fit"]
|
||||||
|
|||||||
Reference in New Issue
Block a user