Use NodeJS:Alpine image for Docker Image
This commit is contained in:
parent
532db59b6e
commit
9c1cad9147
10
Dockerfile
10
Dockerfile
|
@ -1,13 +1,13 @@
|
|||
FROM codeberg.org/korbs/bun:amd64 AS runtime
|
||||
FROM codeberg.org/korbs/nodejs:alpine AS runtime
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN bun install
|
||||
RUN bun run translate
|
||||
RUN bun run build
|
||||
RUN npm install
|
||||
RUN npm run translate
|
||||
RUN npm run build
|
||||
|
||||
ENV HOST=0.0.0.0
|
||||
ENV PORT=4321
|
||||
EXPOSE 4321
|
||||
CMD bun ./dist/server/entry.mjs
|
||||
CMD node ./dist/server/entry.mjs
|
Reference in a new issue