Skip to content
Extraits de code Groupes Projets
Valider 164c9e86 rédigé par Tadeusz Sośnierz's avatar Tadeusz Sośnierz
Parcourir les fichiers

Use yarn in Dockerfile for predictable builds

parent d7f1b80d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -3,8 +3,7 @@ COPY . /tmp/src ...@@ -3,8 +3,7 @@ COPY . /tmp/src
# install some dependencies needed for the build process # install some dependencies needed for the build process
RUN apk add --no-cache -t build-deps make gcc g++ python ca-certificates libc-dev wget git RUN apk add --no-cache -t build-deps make gcc g++ python ca-certificates libc-dev wget git
RUN cd /tmp/src \ RUN cd /tmp/src \
&& npm install \ && yarn
&& npm run build
FROM node:14-alpine FROM node:14-alpine
ENV NODE_ENV=production ENV NODE_ENV=production
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter