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 7d15b1e820
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 50s
Build and Push Docker Image / Explore-Gitea-Actions (push) Successful in 53s
chore(deps): update golang:1.23.1 docker digest to f15f966
2024-09-06 03:00:59 +00:00

23 lines
749 B
Docker

FROM golang:1.23.1@sha256:f15f96674c36eadd6fdcb57e9609c728395aa6b565eabb2db563917a7edcade8 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:c6add15c26b86f1ad3f43c8339cf04da4b01984b6b348d9879f9509049381252 AS builder_node
WORKDIR /me-fit
COPY . ./
RUN npm install && npm run build
FROM debian:12.7@sha256:b8084b1a576c5504a031936e1132574f4ce1d6cc7130bbcc25a28f074539ae6b
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"]