install git

main
Cogent Apps 2023-03-21 00:30:36 +00:00
parent d9b584c423
commit 797296e0fe
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,8 @@ FROM node:19-alpine AS build
RUN addgroup -S app && adduser -S app -G app RUN addgroup -S app && adduser -S app -G app
RUN mkdir /app && chown app:app /app RUN mkdir /app && chown app:app /app
RUN apk add --update --no-cache git
USER app USER app
WORKDIR /app WORKDIR /app
@ -19,7 +21,6 @@ COPY ./app/src ./src
ENV NODE_ENV=production ENV NODE_ENV=production
ENV REACT_APP_AUTH_PROVIDER=local ENV REACT_APP_AUTH_PROVIDER=local
RUN apk add --update --no-cache git
RUN npm run build RUN npm run build
FROM node:19-alpine AS server FROM node:19-alpine AS server