Skip to content

Commit e0fa01b

Browse files
committed
fix: copy everything into Dockerfile
1 parent 473da39 commit e0fa01b

3 files changed

Lines changed: 8 additions & 12 deletions

File tree

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.git/
2+
.DS_Store
3+
.env
4+
node_modules/

.github/workflows/build_and_push.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,6 @@ jobs:
6060
done
6161
echo "✅ src and icons directories are present and non-empty."
6262
63-
- name: Build
64-
run: npm run build
65-
66-
- name: Init API (for cache)
67-
run: npm run init
68-
6963
- name: Build and push Image
7064
uses: docker/build-push-action@v6
7165
with:

Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ COPY *.json ./
1717

1818
RUN npm ci
1919

20-
# Copie le code buildé et les icônes
21-
COPY lib/ ./lib/
22-
COPY cache/ ./cache/
23-
COPY icons/ ./icons/
20+
# Copy all files
21+
COPY . .
2422

25-
RUN ls -al
23+
RUN npm run build
2624

27-
RUN chmod 777 -R /data/iconify-api/cache
25+
RUN npm run init
2826

2927
EXPOSE 3000
3028

0 commit comments

Comments
 (0)