fix: add custom dns to hollo service
the service resolve the internal IP of the VM so the federation didn't work
This commit is contained in:
parent
e87e6521a6
commit
43bcb0ce1a
2 changed files with 58 additions and 1 deletions
29
files/docker/fedi/Phanpy.Dockerfile
Normal file
29
files/docker/fedi/Phanpy.Dockerfile
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
FROM node:20-alpine AS builder
|
||||
|
||||
ARG PHANPY_CLIENT_NAME="Phanpy"
|
||||
ARG PHANPY_WEBSITE="https://phanpy.social"
|
||||
ARG PHANPY_LINGVA_INSTANCES="lingva.phanpy.social lingva.lunar.icu lingva.garudalinux.org translate.plausibility.cloud"
|
||||
ARG PHANPY_PRIVACY_POLICY_URL="https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD"
|
||||
ARG PHANPY_DEFAULT_INSTANCE="mastodon.social"
|
||||
|
||||
ENV PHANPY_CLIENT_NAME=${PHANPY_CLIENT_NAME} \
|
||||
PHANPY_WEBSITE=${PHANPY_WEBSITE} \
|
||||
PHANPY_LINGVA_INSTANCES=${PHANPY_LINGVA_INSTANCES} \
|
||||
PHANPY_PRIVACY_POLICY_URL=${PHANPY_PRIVACY_POLICY_URL} \
|
||||
PHANPY_DEFAULT_INSTANCE=${PHANPY_DEFAULT_INSTANCE}
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add --no-cache --virtual .build-deps git && \
|
||||
git clone --depth 1 -b production https://github.com/cheeaun/phanpy.git . && \
|
||||
npm install && \
|
||||
npm run build && \
|
||||
apk del .build-deps
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
RUN echo -e 'server_tokens off;\nclient_max_body_size 99m;' > /etc/nginx/conf.d/custom.conf
|
||||
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
Loading…
Add table
Add a link
Reference in a new issue