Skip to content

Commit

Permalink
Merge pull request #10 from ykdojo/add-npm-install
Browse files Browse the repository at this point in the history
Fix 'next' command not found issue in Docker container
  • Loading branch information
ykdojo committed Jun 22, 2023
2 parents 44947fb + eccf332 commit 29d3f0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ FROM node:14-bullseye-slim
# Set the working directory
WORKDIR /kaguya

# Copy package.json and package-lock.json
COPY package*.json ./

# Install Node.js dependencies
RUN npm install

# Install Python, Git, Curl, and build dependencies
RUN apt-get update && \
apt-get install -y python3 python3-pip git curl build-essential gfortran && \
Expand Down
2 changes: 1 addition & 1 deletion docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
docker build -t kaguya .

# Run the Docker container with the --rm flag (automatically remove container on exit)
docker run --shm-size=2g --rm -p 3000:3000 -v $(pwd):/kaguya kaguya
docker run --shm-size=2g --rm -p 3000:3000 -v $(pwd):/kaguya -v /kaguya/node_modules kaguya

0 comments on commit 29d3f0f

Please sign in to comment.