Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finwise-miniapp-be
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ThinhNC
finwise-miniapp-be
Commits
b8bcdadc
Commit
b8bcdadc
authored
Aug 12, 2026
by
ThinhNC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(deployment): stabilize Docker build and Redis configuration
parent
b87a2723
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
10 deletions
+11
-10
.env.example
.env.example
+1
-1
Dockerfile
Dockerfile
+7
-3
docker-compose.yml
docker-compose.yml
+1
-4
tsconfig.json
tsconfig.json
+2
-2
No files found.
.env.example
View file @
b8bcdadc
...
...
@@ -14,7 +14,7 @@ JWT_ACCESS_EXPIRES_IN=1d
JWT_REFRESH_EXPIRES_IN=7d
REDIS_HOST=localhost
REDIS_PORT=
6
379
REDIS_PORT=
7
379
REDIS_PASSWORD=
REDIS_ENABLED=true
...
...
Dockerfile
View file @
b8bcdadc
...
...
@@ -3,12 +3,16 @@ FROM node:20-alpine AS builder
WORKDIR
/usr/src/app
# Prisma requires OpenSSL for its query engine.
RUN
apk add
--no-cache
openssl
# Enable corepack to use pnpm defined in package.json
RUN
corepack
enable
&&
corepack prepare pnpm@9.15.0
--activate
# Copy package descriptors first to leverage Docker layer caching
COPY
package.json pnpm-lock.yaml ./
COPY
prisma/schema.prisma ./prisma/
COPY
scripts/prisma-run.js ./scripts/prisma-run.js
# Install all dependencies (including devDependencies)
RUN
pnpm
install
--frozen-lockfile
...
...
@@ -28,6 +32,9 @@ FROM node:20-alpine AS runner
WORKDIR
/usr/src/app
# Prisma requires OpenSSL for its query engine.
RUN
apk add
--no-cache
openssl
# Enable corepack to use pnpm
RUN
corepack
enable
&&
corepack prepare pnpm@9.15.0
--activate
...
...
@@ -47,9 +54,6 @@ RUN pnpm install --prod --frozen-lockfile
# Copy compiled files from builder stage
COPY
--from=builder /usr/src/app/dist ./dist
# Copy generated Prisma Client from builder stage
COPY
--from=builder /usr/src/app/node_modules/.prisma ./node_modules/.prisma
COPY
--from=builder /usr/src/app/node_modules/@prisma/client ./node_modules/@prisma/client
# Use non-root node user for security hardening
USER
node
...
...
docker-compose.yml
View file @
b8bcdadc
version
:
"
3.8"
services
:
postgres
:
image
:
postgres:16-alpine
...
...
@@ -22,7 +20,7 @@ services:
image
:
redis:7-alpine
container_name
:
finwise_redis
ports
:
-
"
${REDIS_PORT:-
6381
}:6379"
-
"
${REDIS_PORT:-
7379
}:6379"
healthcheck
:
test
:
[
"
CMD"
,
"
redis-cli"
,
"
ping"
]
interval
:
5s
...
...
@@ -58,4 +56,3 @@ services:
volumes
:
postgres_data
:
tsconfig.json
View file @
b8bcdadc
...
...
@@ -10,8 +10,8 @@
"skipLibCheck"
:
true
,
"forceConsistentCasingInFileNames"
:
true
,
"resolveJsonModule"
:
true
,
"declaration"
:
tru
e
,
"declarationMap"
:
tru
e
,
"declaration"
:
fals
e
,
"declarationMap"
:
fals
e
,
"sourceMap"
:
true
,
"noUnusedLocals"
:
false
,
"noUnusedParameters"
:
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment