Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
big-agi-custom-deployment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sofiane Lasri
big-agi-custom-deployment
Commits
04a0a285
Commit
04a0a285
authored
2 months ago
by
Sofiane Lasri
Browse files
Options
Downloads
Patches
Plain Diff
fixed
parent
7848dc69
Branches
main
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+18
-7
18 additions, 7 deletions
Dockerfile
docker-compose.yml
+8
-1
8 additions, 1 deletion
docker-compose.yml
with
26 additions
and
8 deletions
Dockerfile
+
18
−
7
View file @
04a0a285
FROM
ghcr.io/enricoros/big-agi:development
FROM
node:22-alpine
RUN
apk add
--no-cache
git
RUN
apk add
--no-cache
openssl
WORKDIR
/app
RUN
mv
middleware_BASIC_AUTH.ts middleware.ts
RUN
git clone https://github.com/enricoros/big-AGI.git
.
RUN if
[
-f
middleware_BASIC_AUTH.ts
]
;
then
\
mv middleware_BASIC_AUTH.ts middleware.ts; \
fi
# Build the application
ENV
NODE_ENV=development
RUN
npm ci
ENV
NODE_ENV=production
RUN
npm run build
# Copy Built app
COPY
--from=builder --chown=nextjs:nodejs /app/public ./public
COPY
--from=builder --chown=nextjs:nodejs /app/.next ./.next
COPY
--from=builder --chown=nextjs:nodejs /app/node_modules ./node_modules
COPY
--from=builder --chown=nextjs:nodejs /app/src/server/prisma ./src/server/prisma
# Reduce installed packages to production-only
RUN
npm prune
--production
ENV
NODE_ENV=production
ENV
PATH=$PATH:/app/node_modules/.bin
EXPOSE
3000
# Start the application
CMD
["next", "start"]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
8
−
1
View file @
04a0a285
services
:
big-agi
:
build
:
.
build
:
context
:
.
dockerfile
:
Dockerfile
ports
:
-
"
1004:3000"
command
:
[
"
next"
,
"
start"
,
"
-p"
,
"
3000"
]
...
...
@@ -14,6 +16,8 @@ services:
restart
:
unless-stopped
environment
:
-
POSTGRES_PRISMA_URL=postgresql://bigagi:${POSTGRES_PASSWORD}@postgres:5432/bigagi?schema=public
-
HTTP_BASIC_AUTH_USERNAME=${HTTP_BASIC_AUTH_USERNAME}
-
HTTP_BASIC_AUTH_PASSWORD=${HTTP_BASIC_AUTH_PASSWORD}
depends_on
:
-
postgres
...
...
@@ -38,3 +42,6 @@ services:
-
/var/run/docker.sock:/var/run/docker.sock
command
:
--schedule "0 0 * * *" --cleanup
restart
:
unless-stopped
volumes
:
postgres_data
:
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment