test
Some checks failed
Build and push Docker image / build (push) Failing after 4s

This commit is contained in:
Constantin Simonis 2025-02-05 12:39:53 +01:00
parent 0ca780f4aa
commit 53d1b68341
Signed by: csimonis
GPG Key ID: 758DD9C506603183

View File

@ -1,9 +1,16 @@
FROM oven/bun:1 AS base
USER root
WORKDIR /usr/src/app
FROM oven/bun:latest AS build
COPY .. /usr/src/app
RUN bun install
WORKDIR /app
EXPOSE 3000/tcp
ENTRYPOINT [ "bun", "start" ]
ENV NODE_ENV=production
COPY .. .
RUN bun install --prod
FROM oven/bun:latest AS production
WORKDIR /app
RUN bun install --prod
EXPOSE 3001
CMD ["bun", "start", "-p", "3001"]