How do I use multiple programming languages in Docker?

How do I use multiple programming languages in Docker?

My project, written in Node.js, runs a Python file that needs to be built. Previously, I have used a script to set up the project when pulled from GitHub. I'd like to use Docker instead but am having issues when running multiple FROMs. My understanding is that FROM creates a new image and it is for this reason that my project build fails. What is the solution to this?

My project, written in Node.js, runs a Python file that needs to be built. Previously, I have used a script to set up the project when pulled from GitHub. I'd like to use Docker instead but am having issues when running multiple FROMs. My understanding is that FROM creates a new image and it is for this reason that my project build fails. What is the solution to this?

Original Shell Script

yarn
git clone https://github.com/<directory>
mv <directory> <new_name>
cd <directory>
virtualenv venv
source venv/bin/activate
pip3 install -r requirements.txt 

Attempted Dockerfile

FROM python:3.6

RUN mkdir -p /usr/src/app

COPY . /usr/src/app/ WORKDIR /usr/src/app

RUN git clone https://github.com/<directory> RUN mv /usr/src/app/<directory> /usr/src/app/<new_name>

RUN pip3 install -r <new_name>/requirements.txt

FROM node:11

WORKDIR /usr/src/app

RUN npm install --production

EXPOSE 3000 ENTRYPOINT npm start


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Crafting multi-stage builds with Docker in Node.js

Learn how you can use a multi-stage Docker build for your Node.js application. Docker multi-stage builds enable us to create more complex build pipelines without having to resort to magic tricks.

Node.js vs Python: Choosing The Right Back-End for Your Web App

Choosing The Right Back-End for Your Web App between Node.js and Python. Node.js and Python are among the most popular technologies for back-end development. In this article, we'll be bold and claim that one of these technologies is winning. The question is: which one is it?

How to Use Express.js, Node.js and MongoDB.js

In this post, I will show you how to use Express.js, Node.js and MongoDB.js. We will be creating a very simple Node application, that will allow users to input data that they want to store in a MongoDB database. It will also show all items that have been entered into the database.