Adding in a more reliable docker dev build. (The other wouldn't use buildkit).

This commit is contained in:
Dessalines 2020-09-02 15:41:49 -05:00
parent e3140235de
commit 8015f560d6
2 changed files with 3 additions and 6 deletions

View file

@ -3,9 +3,7 @@ version: '3.3'
services:
lemmy:
build:
context: ../../
dockerfile: docker/dev/Dockerfile
image: lemmy-dev:latest
ports:
- "8536:8536"
restart: always

View file

@ -1,7 +1,6 @@
#!/bin/sh
set -e
export COMPOSE_DOCKER_CLI_BUILD=1
export DOCKER_BUILDKIT=1
sudo chown -R 991:991 volumes/pictrs
sudo docker-compose up -d --no-deps --build
sudo docker build ../../ --file ../dev/Dockerfile -t lemmy-dev:latest
sudo docker-compose up -d