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
|
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
|
Reference in a new issue