From 5cc8829147f1a8822c435e952ea9f360707e3f30 Mon Sep 17 00:00:00 2001 From: Geir Okkenhaug Jerstad Date: Thu, 26 Sep 2024 09:34:22 +0200 Subject: [PATCH] Docker-test spa with react --- react_test/spa_react/Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 react_test/spa_react/Dockerfile diff --git a/react_test/spa_react/Dockerfile b/react_test/spa_react/Dockerfile new file mode 100644 index 0000000..68afb46 --- /dev/null +++ b/react_test/spa_react/Dockerfile @@ -0,0 +1,12 @@ +# frontend/Dockerfile +FROM node:22.9-alpine3.19 AS prod + +WORKDIR / + +COPY public/ /public +COPY src/ /src +COPY package.json / + +RUN npm install + +CMD ["npm", "start"] \ No newline at end of file