21 lines
351 B
Docker
21 lines
351 B
Docker
FROM node:20-alpine AS nodebuild
|
|
|
|
RUN apk add git
|
|
|
|
RUN cd / && \
|
|
git clone https://github.com/cheeaun/phanpy.git && \
|
|
cd phanpy && \
|
|
git checkout 2024.02.03.35a31e1
|
|
|
|
# builds to /phanpy/dist
|
|
RUN cd /phanpy && \
|
|
npm install && \
|
|
npm run build
|
|
|
|
FROM nginx:alpine
|
|
|
|
COPY --from=nodebuild /phanpy/dist /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|
|
|