inspector/Dockerfile
Aaron Powell ef6d84933a
Apply suggestions from code review
Co-authored-by: John McBride <jpmmcbride@gmail.com>
2025-06-02 13:49:38 +10:00

24 lines
No EOL
405 B
Docker

FROM node:22-slim
# Set working directory
WORKDIR /app
# Copy files
COPY . .
# Install dependencies
# Working around https://github.com/npm/cli/issues/4828
# RUN npm ci
RUN npm install --no-package-lock
# Build the application
RUN npm run build
ARG CLIENT_PORT=6274
ARG SERVER_PORT=6277
EXPOSE ${CLIENT_PORT} ${SERVER_PORT}
# Use ENTRYPOINT with CMD for arguments
ENTRYPOINT ["npm", "start"]
CMD []