Skip to content

Commit

Permalink
add target fs
Browse files Browse the repository at this point in the history
  • Loading branch information
sssomeshhh committed May 27, 2024
1 parent 6c7704e commit 806ccdd
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,21 @@ COPY . .

FROM base as be
# RUN yarn produce
COPY --from=sssomeshhh/rentify:fe /root/fe/build /root/fe/build
EXPOSE 8000
EXPOSE 8080
CMD yarn produce

FROM base as fe
RUN yarn produce

FROM mongo:latest as fs
RUN apt update && \
apt install curl && \
curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh && \
bash nodesource_setup.sh && \
apt install nodejs && \
corepack enable
COPY --from=rentify:fe /root/fe/build /root/fe/build
COPY --from=rentify:be /root/be /root/be
WORKDIR /root/be
RUN yarn install
EXPOSE 8000
RUN echo "mongod > /dev/null 2>&1 & disown ; yarn produce ;" > startApp
CMD bash ./startApp

0 comments on commit 806ccdd

Please sign in to comment.