Category : dockerignore

I have a test_app.sh like this : #! /bin/bash mkdir tempdir mkdir tempdir/templates mkdir tempdir/static cp test_app.py tempdir/. cp -r templates/* tempdir/templates/. cp -r templates/* tempdir/static/. #Création du fichier Dockerfile #Lancement du build de l’image testapp à partir de Dockerfile sous /tempdir echo "FROM python" >> tempdir/Dockerfile echo "RUN pip3 install flask" >> tempdir/Dockerfile echo ..

Read more

When I build the container and I check the files that should have been ignored, most of them haven’t been ignored. This is my folder structure. Root/ data/ project/ __pycache__/ media/ static/ app/ __pycache__/ migrations/ templates/ .dockerignore .gitignore .env docker-compose.yml Dockerfile requirements.txt manage.py Let’s say i want to ignore the __pycache__ & data(data will be ..

Read more

I have a question about the .dockerignore workflow which I wasn’t really able to understand while browsing through the documentation and different internet topics. Have the following folder structure: home | |- folder_1 |- folder_2 Inside my dockerfile I want to copy the contents of home directory, so I use COPY ./ /home Inside .dockerignore ..

Read more