mirror of
https://github.com/sundowndev/phoneinfoga.git
synced 2026-11-04 12:04:37 +00:00
26 lines
521 B
Docker
26 lines
521 B
Docker
FROM node:20.9.0-alpine AS client_builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY ./web/client .
|
|
RUN yarn install --immutable
|
|
RUN yarn build
|
|
RUN yarn cache clean
|
|
|
|
FROM golang:1.20.6-alpine AS go_builder
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apk add --update --no-cache git make bash build-base
|
|
COPY . .
|
|
COPY --from=client_builder /app/dist ./web/client/dist
|
|
RUN go get -v -t -d ./...
|
|
RUN make install-tools
|
|
RUN make build
|
|
|
|
FROM alpine:3.18
|
|
COPY --from=go_builder /app/bin/phoneinfoga /app/phoneinfoga
|
|
EXPOSE 5000
|
|
ENTRYPOINT ["/app/phoneinfoga"]
|
|
CMD ["--help"]
|