mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-28 05:41:34 +00:00
d26a7ad337
* 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>
11 lines
354 B
Bash
Executable file
11 lines
354 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
# This script uses a Dockerfile that takes advantage of docker volume mounts,
|
|
# And runs on an ubuntu image. A little faster for development than the other
|
|
# script
|
|
|
|
mkdir -p volumes/pictrs
|
|
sudo chown -R 991:991 volumes/pictrs
|
|
sudo docker build ../../ --file ../dev/volume_mount.dockerfile -t lemmy-dev:latest
|
|
sudo docker-compose up -d
|