Skip to content

Commit 148bf34

Browse files
authored
Fix docker workflow (#119)
* Dockerfile: Remove Entrypoint and Shell * Makefile: Add target to clean * Dockerfile: Change workdir to /mnt
1 parent 2061a7d commit 148bf34

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ COPY . /wire-docs
88
RUN nix-env -f /wire-docs/nix/default.nix -iA env && \
99
rm -rf /wire-docs
1010

11-
SHELL ["/bin/bash", "-c"]
12-
ENTRYPOINT "/bin/bash"
11+
WORKDIR /mnt
1312

1413
ENV USE_POETRY=0

Diff for: Makefile

+5-2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ docs-pdf:
3838
docs-all:
3939
docker run --rm -v $$(pwd):/mnt $(DOCKER_USER)/$(DOCKER_IMAGE):$(DOCKER_TAG) make clean html pdf
4040

41+
.PHONY: clean
42+
clean:
43+
rm -rf "$(BUILDDIR)"
44+
4145
# Only build part of the documentation
4246
# See 'exclude_patterns' in source/conf.py
4347
docs-administrate:
@@ -66,8 +70,7 @@ else
6670
endif
6771

6872
.PHONY: dev-run
69-
dev-run:
70-
rm -rf "$(BUILDDIR)"
73+
dev-run: clean
7174
ifeq ($(USE_POETRY), 1)
7275
source $$HOME/.poetry/env && \
7376
poetry run sphinx-autobuild \

0 commit comments

Comments
 (0)