chore: #174 make into template
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 47s
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 47s
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -1,5 +1,5 @@
|
||||
FROM golang:1.23.4@sha256:7ea4c9dcb2b97ff8ee80a67db3d44f98c8ffa0d191399197007d8459c1453041 AS builder_go
|
||||
WORKDIR /me-fit
|
||||
WORKDIR /web-app-template
|
||||
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.62.2
|
||||
RUN go install github.com/a-h/templ/cmd/templ@latest
|
||||
RUN go install github.com/vektra/mockery/v2@latest
|
||||
@@ -10,11 +10,11 @@ RUN templ generate
|
||||
RUN mockery --log-level warn
|
||||
RUN go test ./...
|
||||
RUN golangci-lint run ./...
|
||||
RUN go build -o /me-fit/me-fit .
|
||||
RUN go build -o /web-app-template/web-app-template .
|
||||
|
||||
|
||||
FROM node:22.12.0@sha256:0e910f435308c36ea60b4cfd7b80208044d77a074d16b768a81901ce938a62dc AS builder_node
|
||||
WORKDIR /me-fit
|
||||
WORKDIR /web-app-template
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm clean-install
|
||||
COPY . ./
|
||||
@@ -22,11 +22,11 @@ RUN npm run build
|
||||
|
||||
|
||||
FROM debian:12.8@sha256:b877a1a3fdf02469440f1768cf69c9771338a875b7add5e80c45b756c92ac20a
|
||||
WORKDIR /me-fit
|
||||
WORKDIR /web-app-template
|
||||
RUN apt-get update && apt-get install -y ca-certificates && echo "" > .env
|
||||
COPY migration ./migration
|
||||
COPY --from=builder_go /me-fit/me-fit ./me-fit
|
||||
COPY --from=builder_node /me-fit/static ./static
|
||||
COPY --from=builder_go /web-app-template/web-app-template ./web-app-template
|
||||
COPY --from=builder_node /web-app-template/static ./static
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/me-fit/me-fit"]
|
||||
ENTRYPOINT ["/web-app-template/web-app-template"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user