-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (19 loc) · 788 Bytes
/
Dockerfile
File metadata and controls
29 lines (19 loc) · 788 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
FROM node:22-alpine3.19
# Set the working directory
WORKDIR /usr/src/app
# Copy package manager files first to leverage Docker caching
COPY package.json package-lock.json tsconfig.json ./
# Copy the 'core' package and all other packages
COPY packages ./packages
# Install dependencies using npm, lock dependencies for reproducibility
RUN npm ci
# Build the specific package using the argument
RUN npm -w @filecoin-plus/core run build
# Build the specific package using the argument
RUN npm -w @filecoin-plus/application install
# Build the specific package using the argument
RUN npm -w @filecoin-plus/application run build
# Expose the port the app runs on
EXPOSE 3000
# The CMD will be overridden by Docker Compose
CMD ["sh", "-c", "npm -w @filecoin-plus/application start"]