-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 704 Bytes
/
Dockerfile
File metadata and controls
27 lines (19 loc) · 704 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
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
FROM node:lts-alpine
# Create app directory
WORKDIR /usr/src/app
# Copy package files for dependency installation
COPY package*.json ./
# Install dependencies
RUN npm install --ignore-scripts
# Copy the rest of the project files
COPY . .
# Build the project
RUN npm run build
# Expose any ports if needed (optional)
# Set environment variables from Docker if desired (they can also be set externally)
# ENV METABASE_URL=https://your-metabase-instance.com \
# METABASE_USERNAME=your_username \
# METABASE_PASSWORD=your_password
# Use the node binary to run the built server
CMD ["node", "build/index.js"]