diff --git a/Dockerfile b/Dockerfile index 4364485..6e325cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,10 @@ FROM node:current-bullseye-slim as fe RUN corepack enable WORKDIR /root/fe -COPY ./fe . +COPY ./fe/package.json . +COPY ./fe/yarn.lock . RUN yarn install +COPY ./fe . RUN yarn produce FROM mongo:latest as fs @@ -14,9 +16,12 @@ RUN apt-get update && \ corepack enable COPY --from=sssomeshhh/rentify:fe /root/fe/build /root/fe/build WORKDIR /root/be -COPY ./be . +COPY ./be/package.json . +COPY ./be/yarn.lock . RUN yarn install +COPY ./be . ENV SERVER_PORT=80 EXPOSE 80 +ENV IS_EVAL=true RUN echo "mongod > /dev/null 2>&1 & disown ; yarn produce ;" > startApp CMD bash ./startApp