mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-23 04:53:06 +00:00
b8a6592369
* publish docker images from main * try with separate step * redo, lots of boilerplate * try to fix syntax * unique step names * fix docker tags, remove cargo-chef * only build dev image on main branch * use `ref` for condition, as `branch` uses the target branch for PRs * consistent indents * fix tag * use lemmy-ui:dev image for `docker/dev` and `docker/federation`
12 lines
372 B
Bash
Executable file
12 lines
372 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# This script uses a docker file that builds with musl, and runs on linux alpine
|
|
# Its a bit slower for development than the volume mount.
|
|
|
|
set -e
|
|
|
|
mkdir -p volumes/pictrs
|
|
sudo chown -R 991:991 volumes/pictrs
|
|
sudo docker build ../../ --file ../dev/Dockerfile -t lemmy-dev:latest
|
|
sudo docker-compose pull --ignore-pull-failures || true
|
|
sudo docker-compose up -d
|