Parcourir la source

frontal: first shot at a nginx image serving the front

Victor Noël il y a 7 ans
Parent
commit
4984f9c0f8
1 fichiers modifiés avec 12 ajouts et 0 suppressions
  1. 12 0
      frontal/Dockerfile

+ 12 - 0
frontal/Dockerfile

@@ -0,0 +1,12 @@
+FROM node:alpine as build
+
+RUN apk add --no-cache curl
+RUN mkdir /front-chatons
+RUN curl -sSL https://framagit.org/altermediatic/front-chatons/repository/master/archive.tar.gz | tar --directory /front-chatons -xz --strip 1
+WORKDIR /front-chatons
+RUN npm set progress=false && npm i
+
+FROM nginx:alpine
+
+RUN rm -rf /usr/share/nginx/html
+COPY --from=build /front-chatons /usr/share/nginx/html