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

pull/1112/head
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: services:
lemmy: lemmy:
build: image: lemmy-dev:latest
context: ../../
dockerfile: docker/dev/Dockerfile
ports: ports:
- "8536:8536" - "8536:8536"
restart: always restart: always

View File

@ -1,7 +1,6 @@
#!/bin/sh #!/bin/sh
set -e set -e
export COMPOSE_DOCKER_CLI_BUILD=1
export DOCKER_BUILDKIT=1
sudo chown -R 991:991 volumes/pictrs 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