chore: fix build command and improve installation steps

This commit is contained in:
Sammy Teillet
2023-04-18 16:17:01 +02:00
parent 24a3a9d828
commit bba8c592ac
3 changed files with 15 additions and 5 deletions

View File

@ -5,9 +5,12 @@ RUN apk update && apk upgrade && \
apk add libc6-compat
WORKDIR /app/front
COPY ../../front .
RUN export $(xargs <.env)
COPY ../../front/package.json .
COPY ../../front/package-lock.json .
COPY ../../front/.npmrc .
RUN npm install
COPY ../../front .
CMD ["npm", "run", "start"]