From d65f48a387ee9582a06a14d5fe57ba4d21ff4481 Mon Sep 17 00:00:00 2001 From: Dana Lambert Date: Wed, 10 Nov 2021 15:27:16 +1300 Subject: [PATCH] Add Dockerfile for frontend --- frontend/.dockerignore | 2 ++ frontend/Dockerfile | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 frontend/.dockerignore create mode 100644 frontend/Dockerfile diff --git a/frontend/.dockerignore b/frontend/.dockerignore new file mode 100644 index 0000000..b7dab5e --- /dev/null +++ b/frontend/.dockerignore @@ -0,0 +1,2 @@ +node_modules +build \ No newline at end of file diff --git a/frontend/Dockerfile b/frontend/Dockerfile new file mode 100644 index 0000000..016a45d --- /dev/null +++ b/frontend/Dockerfile @@ -0,0 +1,11 @@ +FROM node:16-alpine3.11 as builder + +WORKDIR /app + +COPY ./ /app + +RUN npm install + +RUN npm run-script build + +RUN npm install -g serve