Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expected version "^14.15.0 || ^16.10.0 || >=18.0.0" error with yarn install #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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.