Skip to content

Commit

Permalink
Merge pull request #37 from briefercloud/fix-prisma-multi-images
Browse files Browse the repository at this point in the history
fix: db_migration container not working
  • Loading branch information
vieiralucas authored Sep 13, 2024
2 parents 5d89b86 + 0ee30a8 commit de277d5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
9 changes: 5 additions & 4 deletions apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ FROM node:18-slim AS base

ENV TURBO_TELEMETRY_DISABLED=1

# Clean up
RUN rm -rf /var/lib/apt/lists/*
RUN apt-get update -y && apt-get install -y openssl curl && rm -rf /var/lib/apt/lists/*

# The web Dockerfile is copy-pasted into our main docs at /docs/handbook/deploying-with-docker.
# Make sure you update this Dockerfile, the Dockerfile in the web workspace and copy that over to Dockerfile in the docs.
Expand Down Expand Up @@ -53,8 +52,10 @@ RUN groupadd -r expressjs && useradd -r -g expressjs expressjs \
&& mkdir -p /home/expressjs/Downloads \
&& chown -R expressjs:expressjs /home/expressjs

USER expressjs

COPY --from=installer /app .
# change permissions to allow prisma to write to the filesystem
RUN chown -R expressjs:expressjs /app/node_modules/@prisma/engines

USER expressjs

CMD node --max-old-space-size=12000 apps/api/dist/src/index.js
2 changes: 1 addition & 1 deletion apps/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ COPY --from=installer /app/apps/web/package.json .
COPY --from=installer --chown=nextjs:nodejs /app/apps/web/.next/standalone ./
COPY --from=installer --chown=nextjs:nodejs /app/apps/web/.next/static ./apps/web/.next/static
COPY --from=installer --chown=nextjs:nodejs /app/apps/web/public ./apps/web/public
COPY --from=installer --chown=nextjs:nodejs /app/apps/web/start.sh .
COPY --from=installer --chown=nextjs:nodejs /app/apps/web/start.sh ./apps/web/start.sh

EXPOSE 3000

Expand Down
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ services:
POSTGRES_PORT: '5432'
POSTGRES_DATABASE: 'briefer'
ENVIRONMENT_VARIABLES_ENCRYPTION_KEY: ${ENVIRONMENT_VARIABLES_ENCRYPTION_KEY:?error}
WORKSPACE_SECRETS_ENCRYPTION_KEY: ${WORKSPACE_SECRETS_ENCRYPTION_KEY:?error}
DATASOURCES_ENCRYPTION_KEY: ${DATASOURCES_ENCRYPTION_KEY:?error}
JUPYTER_HOST: 'jupyter_server'
JUPYTER_PORT: 8888
Expand Down

1 comment on commit de277d5

@GodJohn360
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls help me scripp

Please sign in to comment.