Skip to content

Commit 203cc68

Browse files
committed
✨ Update Docker Configuration and .gitignore
- Correct the directory name in .gitignore from 'memory_bank/' to 'memory-bank/' for consistency. - Simplify the Docker Compose configuration by removing unnecessary volume mappings. - Adjust the Dockerfile to ensure proper copying of build artifacts and resources, including images for production deployment.
1 parent 489c53e commit 203cc68

4 files changed

Lines changed: 13 additions & 11 deletions

File tree

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build
2+
node_modules
3+
.env
4+
.git
5+
.gitignore
6+
.dockerignore
7+
.github
8+
.vscode

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ yarn-error.log
2323

2424
# Platform specific
2525
.DS_Store
26-
memory-bank/
26+
memory-bank/

compose.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.8'
2-
31
services:
42
app:
53
build:
@@ -10,9 +8,6 @@ services:
108
- .env
119
ports:
1210
- "${PORT}:3333"
13-
volumes:
14-
- .:/app
15-
- /app/node_modules
1611
environment:
1712
- NODE_ENV=production
1813
- DB_HOST=mysql
@@ -30,11 +25,8 @@ services:
3025
- GITHUB_CLIENT_SECRET=${GITHUB_CLIENT_SECRET}
3126
- GITHUB_CALLBACK_URL=${GITHUB_CALLBACK_URL}
3227
- TZ=${TZ}
33-
34-
3528
depends_on:
3629
- mysql
37-
command: sh -c "npm install && npm run dev"
3830

3931
mysql:
4032
build:

docker/node/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ FROM base
2424
ENV NODE_ENV=production
2525
WORKDIR /app
2626
COPY --from=production-deps /app/node_modules /app/node_modules
27-
COPY --from=build /app/build /app
27+
COPY --from=build /app/build/ /app
28+
COPY --from=build /app/resources/images /app/public/resources/images
29+
2830
EXPOSE 3333
29-
CMD ["node", "./bin/server.js"]
31+
CMD ["node", "bin/server.js"]

0 commit comments

Comments
 (0)