This repository has been archived on 2025-08-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
web-app-template/Dockerfile
Renovate Bot 9fffc851e7
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 59s
Build and Push Docker Image / Explore-Gitea-Actions (push) Successful in 1m6s
chore(deps): update node.js to 8ec0232
2024-09-04 01:02:11 +00:00

23 lines
749 B
Docker

FROM golang:1.23.0@sha256:613a108a4a4b1dfb6923305db791a19d088f77632317cfc3446825c54fb862cd 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.8.0@sha256:8ec02324cb37718197de92e51677781be9f1345c709f31a1f44440c6036d24a2 AS builder_node
WORKDIR /me-fit
COPY . ./
RUN npm install && npm run build
FROM debian:12.6@sha256:aadf411dc9ed5199bc7dab48b3e6ce18f8bbee4f170127f5ff1b75cd8035eb36
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 migration ./migration
EXPOSE 8080
ENTRYPOINT ["/me-fit/me-fit"]