Mirror for https://github.com/STBoyden/go-portfolio
at develop 19 lines 520 B view raw
1ARG GO_VERSION=1 2FROM golang:${GO_VERSION}-bookworm AS builder 3 4WORKDIR /usr/src/app 5RUN apt-get update && apt-get install nodejs npm -y 6RUN npm install -g pnpm 7COPY package.json pnpm-lock.yaml ./ 8RUN pnpm install 9COPY go.mod go.sum justfile ./ 10RUN node_modules/.bin/just install_deps 11COPY . . 12RUN node_modules/.bin/just cd_build 13 14FROM debian:bookworm 15 16RUN apt-get update && apt-get install ca-certificates -y 17RUN update-ca-certificates 18COPY --from=builder /usr/src/app/build/portfolio /usr/local/bin/ 19CMD ["portfolio"]