From 5d9bc38b22fef429642d10e85086840eea978048 Mon Sep 17 00:00:00 2001 From: Nat Hillard Date: Thu, 3 Jun 2021 21:08:52 -0400 Subject: [PATCH] WIP dockerfile --- client/.dockerignore | 2 ++ client/Dockerfile | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 client/.dockerignore create mode 100644 client/Dockerfile diff --git a/client/.dockerignore b/client/.dockerignore new file mode 100644 index 00000000..93f13619 --- /dev/null +++ b/client/.dockerignore @@ -0,0 +1,2 @@ +node_modules +npm-debug.log diff --git a/client/Dockerfile b/client/Dockerfile new file mode 100644 index 00000000..07309f12 --- /dev/null +++ b/client/Dockerfile @@ -0,0 +1,20 @@ +FROM node:14 AS build + +# This will henceforth be our app directory +WORKDIR /usr/src/app + +# Copy both package.json and package-lock.json +COPY package*.json ./ + +# Install dependencies +RUN npm install + +# Copy App source +COPY . . + +EXPOSE 8000 +CMD [ "npm", "start" ] + +# RUN npm build +# FROM scratch AS bin +# COPY --from=build ./public / \ No newline at end of file