WheelOfPorn

The Wheel of Porn from Family Guy (Season 13 Episode 9) programmed in react.
git clone git://git.oshgnacknak.de/WheelOfPorn.git
Log | Files | Refs | README

commit 5931c80884f9d9132fbe69f94dddb4452655a284
parent fee6d61e4a29821b2e406ef073500a8927dea656
Author: Oshgnacknak <osh@oshgnacknak.de>
Date:   Wed, 26 Aug 2020 19:57:57 +0200

Dockerized

Diffstat:
A.dockerignore | 2++
ADockerfile | 36++++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/.dockerignore b/.dockerignore @@ -0,0 +1,2 @@ +*/node_modules +*/build diff --git a/Dockerfile b/Dockerfile @@ -0,0 +1,36 @@ +# pull official base image +FROM node:13.12.0-alpine AS client + +ENV NODE_ENV=production + +# set working directory +WORKDIR /app + +# add `/app/node_modules/.bin` to $PATH +ENV PATH /app/node_modules/.bin:$PATH + +# install app dependencies +COPY client/package.json ./ +COPY client/yarn.lock ./ +RUN yarn install + +# build app +COPY client ./ +RUN yarn build + +FROM node:13.12.0-alpine + +ENV NODE_ENV=production + +# set working directory +WORKDIR /app + +# install app dependencies +COPY server/package.json ./ +COPY server/package-lock.json ./ +RUN npm install + +# run app +COPY server ./ +COPY --from=client /app/build ./public +CMD ["node", "index.js"]