WIP dockerfile

This commit is contained in:
Nat Hillard 2021-06-03 21:08:52 -04:00
parent 55d6e6635b
commit 30bdf5afa0
2 changed files with 22 additions and 0 deletions

2
client/.dockerignore Normal file
View file

@ -0,0 +1,2 @@
node_modules
npm-debug.log

20
client/Dockerfile Normal file
View file

@ -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 /