Files
CollabTable/CollabTableServer/Dockerfile
T

31 lines
532 B
Docker
Raw Normal View History

FROM node:20-alpine AS webui-builder
WORKDIR /webui
COPY webui/package*.json ./
RUN npm install
COPY webui/ .
RUN npm run build
FROM node:20-alpine
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Build TypeScript
RUN npm run build
# Built webui, served by webRoutes.ts from ./web (sibling of dist/)
COPY --from=webui-builder /webui/build ./web
# Expose port
EXPOSE 3000
# Start the application
CMD ["npm", "start"]