-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (26 loc) · 822 Bytes
/
Dockerfile
File metadata and controls
37 lines (26 loc) · 822 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
35
36
37
# Use Node.js 18 as the base image
FROM node:18
# Set the working directory
WORKDIR /app
# Copy package.json and package-lock.json for root
COPY package.json package-lock.json ./
# Copy package.json for fhir-scheduler
COPY packages/fhir-scheduler/package.json packages/fhir-scheduler/package-lock.json* ./packages/fhir-scheduler/
# Install dependencies for root
RUN npm install
# Install dependencies for fhir-scheduler
WORKDIR /app/packages/fhir-scheduler
RUN npm install
# Go back to root
WORKDIR /app
# Copy the rest of the application code
COPY . .
# Build the fhir-scheduler standalone bundle
WORKDIR /app/packages/fhir-scheduler
RUN npm run build:standalone
# Go back to root
WORKDIR /app
# Expose the application port
EXPOSE 4010
# Set the default command to run the application
CMD ["npm", "run", "dev"]