-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 815 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (23 loc) · 815 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
FROM node:26-bookworm
# Set the working directory
WORKDIR /app/hennos
# Install some apt deps
RUN apt update
RUN apt install -y build-essential python3 python3-pip libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libasound2
# Copy package.json and package-lock.json
COPY package.json package.json
COPY package-lock.json package-lock.json
COPY tsconfig.json tsconfig.json
COPY .eslintrc.json .eslintrc.json
COPY prisma/schema.prisma prisma/schema.prisma
COPY prisma/migrations prisma/migrations
# Install dependencies
RUN npm ci
# Copy the rest of the application code
COPY src src
# Copy the public directory
COPY public public
# Run the typescript build
RUN npm run build
# Start the application
CMD [ "npm", "start" ]