Skip to content

Commit b4a94b1

Browse files
committed
chore: fix Dockerfile
1 parent 964f3e4 commit b4a94b1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,5 @@ jobs:
5656
push: ${{ github.event_name != 'pull_request' }}
5757
tags: ${{ steps.meta.outputs.tags }}
5858
labels: ${{ steps.meta.outputs.labels }}
59+
cache-from: type=gha
60+
cache-to: type=gha,mode=max

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ COPY src ./src
1313
COPY config.toml ./
1414
COPY templates ./templates
1515

16+
# To trigger cargo to recompile
17+
RUN touch src/main.rs
18+
1619
RUN cargo install --path . --offline
1720

1821
FROM debian:buster-slim

0 commit comments

Comments
 (0)