Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sundowndev
GitHub Repository: sundowndev/phoneinfoga
Path: blob/master/Dockerfile
988 views
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"]