Skip to content

Commit f2d45bb

Browse files
committed
fix docker context in CI file
1 parent 079927d commit f2d45bb

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ jobs:
5959
id: build-and-push
6060
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
6161
with:
62-
file: frontend/Dockerfile
63-
context: frontend
62+
file: Dockerfile
63+
context: .
6464
push: true
6565
tags: ${{ steps.meta.outputs.tags }}
6666
labels: ${{ steps.meta.outputs.labels }}

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,6 @@ RUN uv venv && \
2121

2222
RUN . .venv/bin/activate && mkdocs build
2323

24-
CMD ["/bin/sh", "-c", ". .venv/bin/activate && mkdocs serve -a 0.0.0.0:8000"]
24+
EXPOSE 8000
25+
26+
CMD ["/bin/sh", "-c", ". .venv/bin/activate && python -m http.server 8000 --directory site"]

build_tag_and_publish.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22

3+
# Use this script to build, tag, and publish the Docker image from your local machine.
34
set -e
45

56
docker build -t docs-v2 .

0 commit comments

Comments
 (0)