1
0
resumarkdown/Dockerfile

18 lines
547 B
Docker
Raw Normal View History

# 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/.
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
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"]