2023-12-14 11:18:11 +00:00
|
|
|
FROM node:20-alpine
|
|
|
|
|
|
|
|
RUN apk add git
|
|
|
|
|
|
|
|
RUN cd / && \
|
|
|
|
git clone https://github.com/cheeaun/phanpy.git && \
|
|
|
|
cd phanpy && \
|
2024-01-02 22:17:28 +00:00
|
|
|
git checkout 2023.12.31.8aa0542
|
2023-12-14 11:18:11 +00:00
|
|
|
|
|
|
|
# builds to /phanpy/dist
|
|
|
|
RUN cd /phanpy && \
|
|
|
|
npm install && \
|
|
|
|
npm run build
|
2023-12-14 11:29:14 +00:00
|
|
|
|
|
|
|
FROM nginx:alpine
|
|
|
|
|
|
|
|
COPY --from=0 /phanpy/dist /usr/share/nginx/html
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|