Files

18 lines
547 B
Docker
Raw Permalink Normal View History

2025-02-28 10:53:21 -06:00
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at https://mozilla.org/MPL/2.0/.
2024-11-23 23:49:24 -06:00
FROM node:22.11.0-bookworm-slim AS builder
2024-11-16 15:31:49 -06:00
WORKDIR /app
COPY . .
RUN npm install && npm run build
2024-11-23 23:49:24 -06:00
FROM node:22.11.0-bookworm-slim AS runner
2024-11-16 15:31:49 -06:00
LABEL maintainer="Nicola Clark <nicola@slottedspoon.dev>"
EXPOSE 3000
WORKDIR /app
COPY package.json package-lock.json ./
COPY --from=builder /app/build ./build
RUN npm ci --omit dev
CMD ["node", "build"]