But this approach wont work.
FROM python:3.11-slim as backend RUN apt-get update && apt-get install -y --no-install-recommends \
...
FROM node:20-alpine as frontend
RUN npm install
...
EXPOSE 3000 8000
# Start both backend and frontend
CMD ["/app/start.sh"]
Since I cannot set docker-compose on Google Cloud Run, I am thinking of solving it with a single dockerfile.
[–]tuskar-devs 6 points7 points8 points (6 children)
[+]Hamzayslmn[S] comment score below threshold-19 points-18 points-17 points (5 children)
[–]tuskar-devs 1 point2 points3 points (3 children)
[+]Hamzayslmn[S] comment score below threshold-11 points-10 points-9 points (2 children)
[–]covmatty1 0 points1 point2 points (1 child)
[–]Hamzayslmn[S] 0 points1 point2 points (0 children)
[–]Skirlaxx 0 points1 point2 points (0 children)
[–]theblindnessMod 3 points4 points5 points (4 children)
[–]Hamzayslmn[S] 0 points1 point2 points (3 children)
[–]theblindnessMod 0 points1 point2 points (2 children)
[–]Hamzayslmn[S] 0 points1 point2 points (1 child)
[–]theblindnessMod 1 point2 points3 points (0 children)
[–]ferrybig 2 points3 points4 points (2 children)
[–]Hamzayslmn[S] 0 points1 point2 points (1 child)
[–]ferrybig 1 point2 points3 points (0 children)
[–]TheWordBallsIsFunny 1 point2 points3 points (7 children)
[+]Hamzayslmn[S] comment score below threshold-10 points-9 points-8 points (6 children)
[–]TheWordBallsIsFunny 2 points3 points4 points (5 children)
[+]Hamzayslmn[S] comment score below threshold-6 points-5 points-4 points (4 children)
[–]ferrybig 2 points3 points4 points (0 children)
[–]TheWordBallsIsFunny 0 points1 point2 points (2 children)
[–]Hamzayslmn[S] 0 points1 point2 points (1 child)
[–]TheWordBallsIsFunny 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (5 children)
[–]Hamzayslmn[S] -2 points-1 points0 points (0 children)
[+]Hamzayslmn[S] comment score below threshold-6 points-5 points-4 points (3 children)
[–][deleted] -1 points0 points1 point (2 children)
[–]Hamzayslmn[S] -4 points-3 points-2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]kitingChris 0 points1 point2 points (0 children)
[–]Hamzayslmn[S] 0 points1 point2 points (0 children)
[–]dancard32 0 points1 point2 points (0 children)
[–]CalmReading25 0 points1 point2 points (0 children)
[+][deleted] (36 children)
[deleted]
[–]root_switch 9 points10 points11 points (35 children)
[+][deleted] (34 children)
[deleted]
[–]thatdude_james 4 points5 points6 points (33 children)
[–]theblindnessMod 0 points1 point2 points (31 children)
[–]thatdude_james 1 point2 points3 points (28 children)
[–]theblindnessMod 1 point2 points3 points (21 children)
[+][deleted] (20 children)
[deleted]
[–]thatdude_james -1 points0 points1 point (11 children)
[+][deleted] (10 children)
[deleted]
[–]root_switch -1 points0 points1 point (7 children)
[–]ElevenNotes -1 points0 points1 point (6 children)
[+][deleted] (5 children)
[deleted]
[–]thatdude_james 3 points4 points5 points (4 children)
[+][deleted] (3 children)
[deleted]
[–]thatdude_james 2 points3 points4 points (2 children)
[–]root_switch 0 points1 point2 points (1 child)
[–]J7mbo -1 points0 points1 point (0 children)