phanpy/Dockerfile_phanpy

21 lines
330 B
Plaintext

FROM node:20-alpine
RUN apk add git
RUN cd / && \
git clone https://github.com/cheeaun/phanpy.git && \
cd phanpy && \
git checkout 2023.12.13.19da64a
# builds to /phanpy/dist
RUN cd /phanpy && \
npm install && \
npm run build
FROM nginx:alpine
COPY --from=0 /phanpy/dist /usr/share/nginx/html
EXPOSE 80