mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-24 02:05:39 +03:00
Add Dockerfile for Phanpy
Created a Dockerfile to quickly build/run Phanpy
This commit is contained in:
parent
e8cc93bde6
commit
5e09b0436d
1 changed files with 21 additions and 0 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
# syntax=docker/dockerfile:1.9
|
||||
|
||||
FROM docker.io/node:22-alpine as BUILD
|
||||
ENV \
|
||||
PHANPY_CLIENT_NAME="Phanpy" \
|
||||
PHANPY_WEBSITE="https://phanpy.social" \
|
||||
PHANPY_DEFAULT_INSTANCE="mastodon.social" \
|
||||
PHANPY_DEFAULT_INSTANCE_REGISTRATION_URL="https://mastodon.social/auth/sign_up" \
|
||||
PHANPY_PRIVACY_POLICY_URL="https://mastodon.social/about" \
|
||||
PHANPY_DEFAULT_LANG="en" \
|
||||
PHANPY_LINGVA_INSTANCES="lingva.phanpy.social" \
|
||||
PHANPY_IMG_ALT_API_URL="" \
|
||||
PHANPY_GIPHY_API_KEY=""
|
||||
WORKDIR /build
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm install
|
||||
COPY ./ ./
|
||||
RUN npm run build
|
||||
|
||||
FROM docker.io/bitnami/nginx:1.27
|
||||
COPY --from=BUILD /build/dist/ /app
|
Loading…
Reference in a new issue