The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

build: use nodejs in prod (#54)

* refactor: use nodejs in prod

* build: switch base image to alpine

* build: add non-root user

authored by

Luna Seemann and committed by
GitHub
a4193787 a0533d91

+6 -3
+6 -3
Dockerfile
··· 1 - FROM oven/bun:slim AS base 1 + FROM oven/bun:alpine AS base 2 2 3 3 WORKDIR /app 4 4 ··· 13 13 14 14 RUN bun run build 15 15 16 - FROM base AS runner 16 + FROM node:alpine AS runner 17 17 WORKDIR /app 18 18 19 19 ENV NODE_ENV=production \ ··· 24 24 COPY --from=builder /app/.next/standalone ./ 25 25 COPY --from=builder /app/.next/static ./.next/static 26 26 27 + RUN adduser -D mellow-web 28 + USER mellow-web 29 + 27 30 EXPOSE 3000 28 31 29 - CMD ["bun", "./server.js"] 32 + CMD ["node", "./server.js"]