Compare commits
2 Commits
master
...
web-docker
Author | SHA1 | Date | |
---|---|---|---|
49da5f6eb1 | |||
f0c39f5837 |
@ -1,3 +1,15 @@
|
||||
node_modules
|
||||
build
|
||||
bun.lockb
|
||||
Dockerfile*
|
||||
docker-compose*
|
||||
.dockerignore
|
||||
.git
|
||||
.gitignore
|
||||
README.md
|
||||
LICENSE
|
||||
.vscode
|
||||
Makefile
|
||||
helm-charts
|
||||
.env
|
||||
.editorconfig
|
||||
.idea
|
||||
coverage*
|
@ -1,13 +1,19 @@
|
||||
FROM oven/bun:latest
|
||||
FROM oven/bun AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
RUN bun install && bun run build
|
||||
|
||||
RUN bun install
|
||||
RUN bun run build
|
||||
ENTRYPOINT ["bun", "run", "start"]
|
||||
FROM build AS release
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /app/build ./.next
|
||||
RUN bun add next
|
||||
|
||||
EXPOSE 3000
|
||||
ENTRYPOINT ["bun", "run", "env", "--", "next", "start", "-p", "3000"]
|
@ -2,7 +2,6 @@ import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
distDir: "build",
|
||||
output: "standalone",
|
||||
rewrites: async () => {
|
||||
return [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user