mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-09-09 16:08:49 -06:00
![Dessalines](/assets/img/avatar_default.png)
* Trying out cargo chef and a travis docker image cache. * trying to change internal target. * Use latest cargo-chef with --target * Remove caching for now. * Adding back in chowns * Adding back in cache. * Remove travis caching. * Switching dev dockerfile to match prod, using cargo-chef and alpine. * Make travis happy * Trying a chown rust. * Caching cargo-chef first. * Moving the chowns * Removing many copy commands. * Go back to rust 1.47.0 due to config-rs breaking. * Adding the old volume mount version. * Adding some script comments. Co-authored-by: Luca Palmieri <lpalmieri@truelayer.com>
12 lines
316 B
Bash
Executable File
12 lines
316 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 up -d
|