maps-service/web/Containerfile

19 lines
309 B
Plaintext
Raw Permalink Normal View History

FROM oven/bun AS build
2024-12-11 01:03:18 +00:00
2024-12-11 22:07:15 +00:00
WORKDIR /app
2024-12-11 01:03:18 +00:00
2024-12-12 22:06:30 +00:00
COPY . .
2024-12-11 01:03:18 +00:00
ENV NODE_ENV=production
2024-12-11 22:07:15 +00:00
ENV NEXT_TELEMETRY_DISABLED=1
RUN bun install && bun run build
2024-12-11 01:03:18 +00:00
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"]