mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-30 06:11:18 -07:00
Fix docker
This commit is contained in:
parent
aa88249f37
commit
682b2d34a7
10 changed files with 111 additions and 54 deletions
|
@ -1 +1,8 @@
|
|||
node_modules
|
||||
.git
|
||||
.gitignore
|
||||
*Dockerfile*
|
||||
*docker-compose*
|
||||
.cache
|
||||
public
|
||||
node_modules
|
||||
npm-debug.log
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue