mirror of
https://github.com/SrIzan10/prox2-discord.git
synced 2026-06-06 01:06:57 +00:00
chore: use debian based ithink
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -1,24 +1,26 @@
|
||||
FROM oven/bun:alpine AS builder
|
||||
FROM oven/bun:latest AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json bun.lock* sern.config.json tsconfig.json ./
|
||||
|
||||
RUN apt-get update -y \
|
||||
&& apt-get install -y openssl
|
||||
|
||||
RUN bun install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN bun run build
|
||||
|
||||
RUN apk add --update --no-cache openssl1.1-compat
|
||||
|
||||
RUN bunx prisma generate
|
||||
|
||||
FROM oven/bun:alpine
|
||||
FROM oven/bun:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk add --update --no-cache openssl1.1-compat
|
||||
RUN apt-get update -y \
|
||||
&& apt-get install -y openssl
|
||||
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY --from=builder /app/.sern ./.sern
|
||||
|
||||
Reference in New Issue
Block a user