This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
overflow: hidden; | |
text-overflow: ellipsis; | |
-o-text-overflow: ellipsis; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.8 | |
RUN mkdir /app | |
WORKDIR /app | |
RUN pip install poetry | |
RUN poetry config virtualenvs.create false | |
COPY poetry.lock pyproject.toml /app/ | |
RUN poetry install -n --no-root --no-dev | |
# poetry dependencies installed, here you may want to copy your project package, set command for container, etc. | |
# all dependencies was installed without virtualenv, so you don't have to use `poetry run` in container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in /var/lib/docker/containers/*/config.v2.json; do | |
touch "$i.new" && getfacl -p "$i" | setfacl --set-file=- "$i.new" | |
cat "$i" | jq -c '.State.Running = false' > "$i.new" && mv -f "$i.new" "$i" | |
done |