Compare commits
2 Commits
master
...
web-docker
Author | SHA1 | Date | |
---|---|---|---|
49da5f6eb1 | |||
f0c39f5837 |
@ -1,3 +1,15 @@
|
|||||||
node_modules
|
node_modules
|
||||||
build
|
Dockerfile*
|
||||||
bun.lockb
|
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
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
EXPOSE 3000
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
ENV NEXT_TELEMETRY_DISABLED=1
|
ENV NEXT_TELEMETRY_DISABLED=1
|
||||||
|
RUN bun install && bun run build
|
||||||
|
|
||||||
RUN bun install
|
FROM build AS release
|
||||||
RUN bun run build
|
|
||||||
ENTRYPOINT ["bun", "run", "start"]
|
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 = {
|
const nextConfig: NextConfig = {
|
||||||
distDir: "build",
|
distDir: "build",
|
||||||
output: "standalone",
|
|
||||||
rewrites: async () => {
|
rewrites: async () => {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user