chris c00f2de338 Upgrade main-site to Node 20 for Web Crypto globals
Node 18 requires --experimental-global-webcrypto for crypto.subtle /
crypto.getRandomValues as globals; Node 20 LTS exposes them by default,
which altcha/lib needs for createChallenge.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-12 05:56:40 -04:00

24 lines
500 B
Docker

# Use an official Node.js runtime as a parent image
FROM node:20-alpine
# Set the working directory in the container
WORKDIR /usr/src/app
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./
# Install any needed packages
RUN npm install
# Bundle app source
COPY . .
# Build optimized frontend assets
RUN npm run build
# Make port 3050 available to the world outside this container
EXPOSE 3050
# Define the command to run the app
CMD [ "node", "server.js" ]