This commit is contained in:
parent
53d1b68341
commit
4d8f7391ea
@ -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
5
frontend/.dockerignore
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
.angular
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
.git
|
||||||
|
.docker
|
@ -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}\"",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user