Bluesky app fork with some witchin' additions 💫 forked from jollywhoppers.com/witchsky.app
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081FROM golang:1.24.5-bullseye AS build-envWORKDIR /usr/src/social-appENV DEBIAN_FRONTEND=noninteractive# NodeENV NODE_VERSION=20ENV NVM_DIR=/usr/share/nvm# GoENV GODEBUG="netdns=go"ENV GOOS="linux"ENV GOARCH="amd64"ENV CGO_ENABLED=1ENV GOEXPERIMENT="loopvar"COPY . .## Generate the JavaScript webpack. NOTE: this will change#RUN mkdir --parents $NVM_DIR && \ wget \ --output-document=/tmp/nvm-install.sh \ https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh && \ bash /tmp/nvm-install.shRUN \. "$NVM_DIR/nvm.sh" && \ nvm install $NODE_VERSION && \ nvm use $NODE_VERSION && \ npm install --global yarn && \ yarn && \ cd bskyembed && yarn install --frozen-lockfile && cd .. && \ yarn intl:build && \ yarn build-embed# DEBUGRUN find ./bskyweb/embedr-static && find ./bskyweb/embedr-templates && find ./bskyembed/dist# hack around issue with empty directory and go:embedRUN touch bskyweb/static/js/empty.txtRUN touch bskyweb/static/css/empty.txtRUN touch bskyweb/static/media/empty.txt## Generate the embedr Go binary.#RUN cd bskyweb/ && \ go mod download && \ go mod verifyRUN cd bskyweb/ && \ go build \ -v \ -trimpath \ -tags timetzdata \ -o /embedr \ ./cmd/embedrFROM debian:bullseye-slimENV GODEBUG=netdns=goENV TZ=Etc/UTCENV DEBIAN_FRONTEND=noninteractiveRUN apt-get update && apt-get install --yes \ dumb-init \ ca-certificatesENTRYPOINT ["dumb-init", "--"]WORKDIR /embedrCOPY --from=build-env /embedr /usr/bin/embedrCMD ["/usr/bin/embedr"]LABEL org.opencontainers.image.source=https://github.com/bluesky-social/social-appLABEL org.opencontainers.image.description="embed.bsky.app Web App"LABEL org.opencontainers.image.licenses=MIT