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 cf41d4a202
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 53s
chore(deps): update debian docker tag to v12.7
2024-09-04 23:01:00 +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.7@sha256:b1770e4e16b5a8dac0dec428e55cac216b50212c228e56b873900fa818ae6db1
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"]