j40-cejst-2/client/Dockerfile

20 lines
520 B
Text
Raw Normal View History

FROM node:14
# Set working directory like 'cd' command, any subsequent instructions in this docker file, will start from
# this working directory
WORKDIR /client
# 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 . .
2024-12-23 08:05:18 -08:00
# install all packages as a layer in the docker image / container
RUN npm ci
ENV PORT=6000
EXPOSE 6000
CMD [ "npm", "start"]