1
Fork 0

Use NodeJS:Alpine image for Docker Image

This commit is contained in:
Korbs 2024-06-28 01:43:16 -04:00
parent 532db59b6e
commit 9c1cad9147
No known key found for this signature in database

View file

@ -1,13 +1,13 @@
FROM codeberg.org/korbs/bun:amd64 AS runtime FROM codeberg.org/korbs/nodejs:alpine AS runtime
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN bun install RUN npm install
RUN bun run translate RUN npm run translate
RUN bun run build RUN npm run build
ENV HOST=0.0.0.0 ENV HOST=0.0.0.0
ENV PORT=4321 ENV PORT=4321
EXPOSE 4321 EXPOSE 4321
CMD bun ./dist/server/entry.mjs CMD node ./dist/server/entry.mjs