In case you need to run some custom script in the container, you may use CMD
, like so:
FROM php:7.3-apache
# ...
COPY ./local/path/to/script.sh /remote/path/to/script.sh
<!-- This will include a "data-rjs" attribute on the PNG (or JPG) error fallback in case the SVG failed to load --> | |
<!-- See: https://github.com/strues/retinajs --> | |
<img src="/path/to/some.svg" onerror="this.src='/path/to/some.png'; this.data-rjs='2'; this.onerror=null;"> |
packages: [ | |
"atom-bracket-highlight" | |
"auto-update-packages" | |
"busy-signal" | |
"color-picker" | |
"emmet" | |
"file-icons" | |
"file-templates" | |
"highlight-line" | |
"highlight-selected" |
# I'm using .zshrc but should be valid in any sh or bash shell | |
alias dexec='(){docker exec -it $1 /bin/bash;}' | |
# Use it like this: | |
# dexec <container name or ID> | |
# dexec my_website | |
# dexec ea2bdf44 |
We should simply mirror a local config file to the MySQL config directory in Docker
File: ./docker-compose.local.yml
(or however you name it)
services:
# [...]
mysql:
# [...]
image: mysql:5.7