Skip to content

Commit 450cfcc

Browse files
committed
fix: add the missing .git/ for fe build
1 parent 86fc2b8 commit 450cfcc

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.dockerignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
.git/
21
**/node_modules

.github/workflows/docker.yml

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0 # for vite extracting git tag/hash
1315
- name: Docker meta
1416
id: meta
1517
uses: docker/metadata-action@v5

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# build frontend
22
FROM node:21 as fe
33
WORKDIR /src
4-
COPY ./frontend ./
4+
COPY .git frontend ./
55
RUN npm i && npm run build
66

77
# build backend

0 commit comments

Comments
 (0)