Fix docker

This commit is contained in:
ericiwamoto 2024-12-23 08:05:18 -08:00 committed by Carlos Felix
commit 682b2d34a7
10 changed files with 111 additions and 54 deletions

View file

@ -1 +1,8 @@
node_modules
.git
.gitignore
*Dockerfile*
*docker-compose*
.cache
public
node_modules
npm-debug.log

View file

@ -4,17 +4,14 @@ FROM node:14
# this working directory
WORKDIR /client
# Copy the package.json and package_lock.json files from local to the docker image / container
COPY package*.json ./
# install all packages as a layer in the docker image / container
RUN npm install
# copy all local files from the working directory to the docker image/container however we must use
# dockerignore to ignore node_modules so that the image can use what what was just installed from the above
# step.
COPY . .
# install all packages as a layer in the docker image / container
RUN npm ci
ENV PORT=6000
EXPOSE 6000