Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions linux-docker-fundamentals/Dockerfiles/novice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WORKDIR /app
COPY . .

# runs a command and creates an image layer. Used to install packages into containers
RUN yarn install --production
RUN yarn install --production --ignore-engines

# provides a command and arguments for an executing container. Parameters can be overridden. There can be ONLY one CMD.
CMD ["node", "src/index.js"]
Expand All @@ -30,4 +30,4 @@ EXPOSE 3000
# ADD - copies files and directories to the container. Can unpack local .tar files
# ARG - defines a variable to pass to Docker at build-time.
# ENTRYPOINT - provides command and arguments for an executing container. Arguments persist.
# VOLUME - creates a directory mount point to access and store persistent data.
# VOLUME - creates a directory mount point to access and store persistent data.