-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (26 loc) · 850 Bytes
/
Dockerfile
File metadata and controls
29 lines (26 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Get certificates for https conexions
# FROM alpine:latest as certs
# RUN apk add -U --no-cache ca-certificates
# build UI
FROM node:20-alpine as react-build
WORKDIR /usr/src/app
COPY ./web .
RUN npm install -g corepack && corepack enable && yarn install && yarn build
# build binary
FROM golang:1.24 as golang-build
ENV CGO_ENABLED=0
ENV GO111MODULE=on
ENV GOPROXY=https://proxy.golang.org
WORKDIR /go/src/github.com/golgoth31/domopool
COPY go.mod go.sum ./
RUN go mod download
COPY . .
COPY --from=react-build /usr/src/app/build ./web/build
RUN make build_local
FROM cgr.dev/chainguard/static:latest
VOLUME /data /config
ENV PATH=/bin
# COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=golang-build /go/src/github.com/golgoth31/domopool/domopool /domopool
EXPOSE 8080
ENTRYPOINT ["/domopool"]