maps-service/web/Containerfile

21 lines
540 B
Docker

FROM oven/bun:latest
WORKDIR /app
COPY . .
EXPOSE 3000
ENV NEXT_TELEMETRY_DISABLED=1
RUN bun install
RUN bun run build
RUN rm -rf src eslint.config.mjs tsconfig.json
RUN bun remove "@emotion/react" "@emotion/styled" "@mui/icons-material" "@mui/material" "react" "react-dom" "sass"
# bun prune --production
# Uh-oh. bun prune is a subcommand reserved for future use by Bun.
RUN bun remove "typescript" "@types/node" "@types/react" "@types/react-dom" "eslint" "eslint-config-next" "@eslint/eslintrc"
ENTRYPOINT ["bun", "run", "start"]