Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ ENV VITE_IS_DOCKER=${VITE_IS_DOCKER}
ENV VITE_ENV=${VITE_ENV}
ENV VITE_SERVER_URL=${VITE_SERVER_URL}

COPY package.json pnpm-lock.yaml ./
RUN npm install -g pnpm && pnpm i

COPY . .
RUN npm install -g pnpm && pnpm i && pnpm build
RUN pnpm build

FROM nginx:stable-alpine
COPY --from=builder /app/dist /usr/share/nginx/html
Expand Down
8 changes: 6 additions & 2 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,16 @@ ENV BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET}

WORKDIR /app

COPY package.json pnpm-lock.yaml ./

RUN corepack enable pnpm && pnpm i

COPY . .
RUN corepack enable pnpm && pnpm i && pnpm run build
RUN pnpm run build

ENV NODE_ENV=production
ENV PORT=3001
ENV HOSTNAME="0.0.0.0"

CMD ["node", "./.next/standalone/server.js"]
EXPOSE 3001
CMD ["node", "./.next/standalone/server.js"]
4 changes: 3 additions & 1 deletion server/Dockerfile.bun
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ RUN apt-get update && apt-get install -y libc6-dev nodejs npm

WORKDIR /app

COPY bun.lockb package.json* ./
RUN bun install
COPY . .
RUN bun install; bun run build
RUN bun run build

ENV NODE_ENV=production
ENV PORT=3001
Expand Down