Skip to content

Commit

Permalink
Revert "Remove Dockerfile and devcontainer.json for Node.js and Pytho…
Browse files Browse the repository at this point in the history
…n development"

This reverts commit 70e6a79.
  • Loading branch information
HlexNC authored Apr 3, 2024
1 parent 70e6a79 commit f46d780
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Use an official Node.js runtime as a parent image
FROM node:14

# Set the working directory in the container
WORKDIR /workspace

# Install Python 3
RUN apt-get update && \
apt-get install -y python3 python3-pip && \
rm -rf /var/lib/apt/lists/*

# Optionally install global npm packages
RUN npm install -g nodemon
15 changes: 15 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Python & Node.js Project",
"dockerFile": "Dockerfile",
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"extensions": [
"ms-python.python",
"dbaeumer.vscode-eslint"
],
"forwardPorts": [],
"postCreateCommand": "pip install -r requirements.txt && npm install",
"remoteUser": "root",
"workspaceFolder": "/workspace"
}

0 comments on commit f46d780

Please sign in to comment.