1
0
Fork 0
mirror of https://git.fifo-f.eu/fifo/phanpy-docker.git synced 2025-04-18 19:08:20 +02:00
phanpy-docker/Dockerfile

30 lines
1,016 B
Text
Raw Normal View History

FROM node:20-alpine AS builder
2024-12-04 18:38:19 +01:00
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"
2024-12-04 18:38:19 +01:00
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
2024-12-09 08:48:04 +01:00
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
2024-12-04 18:38:19 +01:00
FROM nginx:alpine
2024-12-09 08:48:04 +01:00
RUN echo -e 'server_tokens off;\nclient_max_body_size 99m;' > /etc/nginx/conf.d/custom.conf
2024-12-04 18:38:19 +01:00
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80