flotilla/Dockerfile

28 lines
526 B
Docker
Raw Normal View History

2026-05-11 20:20:47 +00:00
# Build and run the Flotilla web server.
#
# docker build -t flotilla .
# docker run -p 3000:3000 flotilla
#
# Pass --build-arg VITE_BUILD_HASH=$(git rev-parse --short HEAD) to stamp the build.
# A .env in the build context is picked up by build.sh for branding config.
2026-05-11 20:20:47 +00:00
FROM node:22-bookworm
2026-05-11 19:28:42 +00:00
RUN npm install -g pnpm@10.33.0
2025-05-15 18:31:19 +00:00
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
2026-05-11 20:20:47 +00:00
RUN pnpm i --frozen-lockfile
2025-05-15 18:31:19 +00:00
ENV NODE_OPTIONS=--max_old_space_size=16384
2026-05-11 20:20:47 +00:00
COPY . .
2026-05-11 20:20:47 +00:00
RUN pnpm run build
EXPOSE 3000
CMD ["node", "server.js"]