Skip to content

Commit

Permalink
fix .dockerignore
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbarry committed Feb 12, 2024
1 parent cd40a02 commit 75216f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
.env
Dockerfile
README.md
node_modules/
**/node_modules/
**/.env
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ FROM node:16-alpine
# Set the working directory in the container
WORKDIR /usr/src/app

# Copy the package.json and package-lock.json (if available) to the working directory
COPY src/ ./
# Copy the package.json and package-lock.json
COPY src/package*.json ./

# Install any dependencies
RUN npm install

# Copy application code
COPY src/ ./

# Define the command to run your app using CMD which defines your runtime
CMD ["npm", "start"]

0 comments on commit 75216f7

Please sign in to comment.