first commit 🎉
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
FROM oven/bun:1-alpine AS deps
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json bun.lockb* bun.lock* ./
|
||||
|
||||
RUN if [ -f bun.lockb ] || [ -f bun.lock ]; then \
|
||||
bun install --ci --frozen-lockfile --production; \
|
||||
else \
|
||||
bun install --ci --production; \
|
||||
fi
|
||||
|
||||
FROM oven/bun:1-alpine AS runner
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=3000
|
||||
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
|
||||
COPY . .
|
||||
|
||||
USER bun
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["bun", "run", "start"]
|
||||
Reference in New Issue
Block a user