Hi I want to ignore some files while building a Do...
# general
w
Hi I want to ignore some files while building a Docker image using the
pants package
command. I've tried adding a
.dockerignore
file, but it didn't work. Can someone please tell me how to ignore specific files? Here is my `Dockerfile`:
Copy code
FROM python:3.8.13-slim-bullseye
WORKDIR /home/app
COPY app.pex /home/app/
.dockerignore
Copy code
.libs/
In this example, the
app.pex
folder contains a
.libs/
folder. I want to ignore the
.libs/
folder while copying the
app.pex
folder.
b
What’s your
docker_image
target definition?