2024-05-27 16:19:52 +02:00
|
|
|
FROM node:alpine as build
|
2024-05-30 15:03:56 +02:00
|
|
|
RUN apk add --no-cache git
|
|
|
|
RUN git clone https://github.com/dtonon/oracolo.git /build
|
|
|
|
WORKDIR /build
|
|
|
|
RUN npm install
|
|
|
|
RUN npm run build
|
|
|
|
|
|
|
|
FROM nginx:stable-alpine
|
|
|
|
COPY --from=build /build/dist/ /usr/share/nginx/html
|
|
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
COPY entrypoint.sh /
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|
|
|
|
|
2024-05-27 16:19:52 +02:00
|
|
|
EXPOSE 8080/tcp
|
|
|
|
CMD ["/usr/sbin/nginx", "-g", "daemon off;"]
|