skip to Main Content

run two python scripts with docker compose

My folder structure looked like this: My Dockerfile looked like this: FROM python:3.8-slim-buster WORKDIR /src COPY src/requirements.txt requirements.txt RUN pip install --no-cache-dir -r requirements.txt COPY src/ . CMD [ "python", "main.py"] When I ran these commands: docker build --tag FinTechExplained_Python_Docker…

VIEW QUESTION

Docker merge containers

I have running multiple containers separately which connected to each other using defined network in docker-compose.yml and my application is running perfect, so I want to create only one image for those multiple containers for deploying to my private repository…

VIEW QUESTION

how to correctly copy requirements.txt for docker file

This is how my current folder structure looks like: I am present in the FinTechExplained_Python_Docker folder. My Dockerfile looks like this: FROM python:3.8-slim-buster WORKDIR /src COPY requirements.txt requirements.txt RUN pip install --no-cache-dir -r requirements.txt COPY . . CMD [ "python",…

VIEW QUESTION
Back To Top
Search