-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathDockerfile
49 lines (40 loc) · 1.02 KB
/
Dockerfile
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
38
39
40
41
42
43
44
45
46
47
48
49
# Use an official Node.js image as the base image
FROM node:22-bookworm
# Install necessary dependencies for make and chromium
RUN apt-get update && apt-get install -y \
build-essential \
wget \
gnupg \
libx11-xcb1 \
libxcomposite1 \
libxcursor1 \
libxdamage1 \
libxi6 \
libxtst6 \
libnss3 \
libxrandr2 \
libasound2 \
libpangocairo-1.0-0 \
libatk-bridge2.0-0 \
libgtk-3-0 \
libgbm1 \
xdg-utils \
fonts-liberation \
chromium \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /usr/src/app
# Copy package.json and package-lock.json (or yarn.lock)
COPY package*.json ./
# Install dependencies using npm or yarn
#RUN npm install --force
#RUN yarn && yarn install
ENV CHROME_BIN=/usr/bin/chromium
ENV CHROME_PATH=/usr/bin/chromium
# Copy the rest of the application source code
COPY . .
# Set the default command to build the project using make
#CMD ["make"]
CMD ["sh", "-c", "sleep infinity"]
# Expose the build directory as a volume
VOLUME ["/usr/src/app/builds/knockout/dist"]