maybe fix
Some checks failed
Build and push Docker image / build (push) Has been cancelled

This commit is contained in:
Constantin Simonis 2025-02-05 14:38:58 +01:00
parent 53d1b68341
commit 4d8f7391ea
Signed by: csimonis
GPG Key ID: 758DD9C506603183
3 changed files with 11 additions and 7 deletions

View File

@ -1,16 +1,15 @@
FROM oven/bun:latest AS build FROM oven/bun:latest AS build
WORKDIR /app WORKDIR /app
ENV NODE_ENV=production ENV NODE_ENV=production
COPY .. . COPY .. .
RUN bun install --prod RUN bun install --prod
RUN bun run build
FROM oven/bun:latest AS production FROM oven/bun:latest AS prod
WORKDIR /app WORKDIR /app
RUN bun install --prod COPY --from=build /app /app
EXPOSE 3001 CMD ["bun", "run", "start"]
CMD ["bun", "start", "-p", "3001"]

5
frontend/.dockerignore Normal file
View File

@ -0,0 +1,5 @@
.angular
node_modules
dist
.git
.docker

View File

@ -4,7 +4,7 @@
"scripts": { "scripts": {
"ng": "bunx @angular/cli", "ng": "bunx @angular/cli",
"start": "bunx @angular/cli serve --proxy-config src/proxy.conf.json", "start": "bunx @angular/cli serve --proxy-config src/proxy.conf.json",
"build": "bunx @angular/cli build", "build": "bunx @angular/cli build --no-watch",
"watch": "bunx @angular/cli build --watch --configuration development", "watch": "bunx @angular/cli build --watch --configuration development",
"test": "bunx @angular/cli test", "test": "bunx @angular/cli test",
"format": "prettier --write \"src/**/*.{ts,html,css,scss}\"", "format": "prettier --write \"src/**/*.{ts,html,css,scss}\"",