-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
34 lines (25 loc) · 779 Bytes
/
Containerfile
File metadata and controls
34 lines (25 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# UbiCity Docker Container
# Provides isolated environment for running UbiCity tools
FROM node:20-alpine
# Set working directory
WORKDIR /app
# Install dependencies
COPY package*.json ./
RUN npm ci --only=production
# Copy application code
COPY src/ ./src/
COPY schema/ ./schema/
COPY examples/ ./examples/
COPY scripts/ ./scripts/
# Create data directory
RUN mkdir -p ubicity-data/experiences ubicity-data/analyses ubicity-data/maps
# Expose volume for data persistence
VOLUME ["/app/ubicity-data"]
# Set Node.js environment
ENV NODE_ENV=production
# Default command: show help
CMD ["node", "src/cli.js", "help"]
# Example usage:
# docker build -t ubicity .
# docker run -v ./data:/app/ubicity-data ubicity stats
# docker run -v ./data:/app/ubicity-data ubicity report