Skip to content

Commit

Permalink
Updating devContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbos authored Dec 9, 2023
1 parent d8b30ec commit 0f5b1b8
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 6 deletions.
36 changes: 30 additions & 6 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,36 @@
}
},
"runArgs": [ "-u", "node" ],
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"extensions": [
"dbaeumer.vscode-eslint",
"ms-azuretools.vscode-docker"
]
}
},
"extensions": [
"dbaeumer.vscode-eslint"
],
"postCreateCommand": "npm install",
"forwardPorts": [ 3000 ]
}
}# Choose the Node.js version
FROM node:14

# Set the working directory
WORKDIR /usr/src/app

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

# Install dependencies
RUN npm install

# Copy the rest of your app's source code
COPY . .

# Expose the port your app runs on
EXPOSE 3000

# Start the app
CMD [ "node", "server.js" ]
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Choose the Node.js version
FROM node:20

# Set the working directory
WORKDIR /src

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

# Install dependencies
RUN npm install

# Copy the rest of your app's source code
COPY /src/ .

# Expose the port your app runs on
EXPOSE 3000

# Start the app
CMD [ "node", "server.js" ]

0 comments on commit 0f5b1b8

Please sign in to comment.