2024-01-13 18:32:30 +00:00
|
|
|
FROM node:20-alpine AS nodebuild
|
2024-01-06 13:08:17 +00:00
|
|
|
|
|
|
|
RUN apk add git
|
|
|
|
|
|
|
|
RUN cd / && \
|
|
|
|
git clone https://github.com/cheeaun/phanpy.git && \
|
|
|
|
cd phanpy && \
|
2024-02-02 16:05:00 +00:00
|
|
|
git checkout 2024.01.21.247ed4a
|
2024-01-06 13:08:17 +00:00
|
|
|
|
|
|
|
# builds to /phanpy/dist
|
|
|
|
RUN cd /phanpy && \
|
|
|
|
npm install && \
|
|
|
|
npm run build
|
|
|
|
|
2023-12-14 11:18:11 +00:00
|
|
|
FROM nginx:alpine
|
2024-01-06 13:08:17 +00:00
|
|
|
|
2024-01-13 18:32:30 +00:00
|
|
|
COPY --from=nodebuild /phanpy/dist /usr/share/nginx/html
|
2024-01-06 13:08:17 +00:00
|
|
|
|
2023-12-14 11:18:11 +00:00
|
|
|
EXPOSE 80
|
2024-01-06 13:08:17 +00:00
|
|
|
|