& so it begins
This commit is contained in:
27
dockerfiles/main.Dockerfile
Normal file
27
dockerfiles/main.Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM node:25.6.1 AS production
|
||||
|
||||
RUN npm i -g bun
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json bun.lock turbo.json ./
|
||||
|
||||
COPY apps/main/package.json ./apps/main/package.json
|
||||
|
||||
COPY packages ./packages
|
||||
|
||||
RUN bun install
|
||||
|
||||
COPY apps/main ./apps/main
|
||||
|
||||
RUN bun install
|
||||
|
||||
RUN bun run build
|
||||
|
||||
COPY scripts ./scripts
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
RUN chmod +x scripts/prod.start.sh
|
||||
|
||||
CMD ["/bin/sh", "scripts/prod.start.sh", "apps/main"]
|
||||
17
dockerfiles/migrator.Dockerfile
Normal file
17
dockerfiles/migrator.Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM node:23.11.0 AS base
|
||||
|
||||
RUN npm i -g bun
|
||||
|
||||
FROM base AS primary
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json bun.lock turbo.json ./
|
||||
|
||||
COPY packages/db packages/db
|
||||
|
||||
RUN bun install
|
||||
|
||||
COPY scripts scripts
|
||||
|
||||
CMD ["/bin/sh", "/app/scripts/migrate.sh"]
|
||||
26
dockerfiles/processor.Dockerfile
Normal file
26
dockerfiles/processor.Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
FROM oven/bun:1.3.5-alpine
|
||||
|
||||
RUN apk add --no-cache xh
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json bun.lock turbo.json ./
|
||||
|
||||
COPY apps/processor/package.json ./apps/processor/package.json
|
||||
|
||||
COPY packages ./packages
|
||||
|
||||
RUN bun install
|
||||
|
||||
COPY apps/processor ./apps/processor
|
||||
|
||||
RUN bun install
|
||||
|
||||
COPY scripts ./scripts
|
||||
|
||||
EXPOSE 3000
|
||||
EXPOSE 9001
|
||||
|
||||
RUN chmod +x scripts/*.sh
|
||||
|
||||
CMD ["/bin/sh", "scripts/prod.start.sh", "apps/processor"]
|
||||
Reference in New Issue
Block a user