mirror of
https://git.fifo-f.eu/fifo/phanpy-docker.git
synced 2025-04-19 11:28:05 +02:00
Initial commit
This commit is contained in:
commit
f699995f44
2 changed files with 45 additions and 0 deletions
25
Dockerfile
Normal file
25
Dockerfile
Normal file
|
@ -0,0 +1,25 @@
|
|||
FROM node:18-alpine AS builder
|
||||
|
||||
ARG PHANPY_CLIENT_NAME
|
||||
ARG PHANPY_WEBSITE
|
||||
ARG PHANPY_LINGVA_INSTANCES
|
||||
ARG PHANPY_PRIVACY_POLICY_URL
|
||||
ARG PHANPY_DEFAULT_INSTANCE
|
||||
|
||||
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}
|
||||
|
||||
RUN apk add --no-cache git
|
||||
WORKDIR /app
|
||||
RUN git clone --depth 1 -b production https://github.com/cheeaun/phanpy.git .
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:alpine
|
||||
RUN echo 'server_tokens off;' > /etc/nginx/conf.d/server_tokens_off.conf
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
Loading…
Add table
Add a link
Reference in a new issue