Dockerfile 386 B

123456789101112
  1. FROM node:alpine as build
  2. RUN apk add --no-cache curl
  3. RUN mkdir /front-chatons
  4. RUN curl -sSL https://framagit.org/oxyta.net/front-chatons/repository/master/archive.tar.gz | tar --directory /front-chatons -xz --strip 1
  5. WORKDIR /front-chatons
  6. RUN npm set progress=false && npm i
  7. FROM nginx:alpine
  8. RUN rm -rf /usr/share/nginx/html
  9. COPY --from=build /front-chatons /usr/share/nginx/html