nexus3rd commited on
Commit
ca0e723
·
1 Parent(s): 8fad1bf
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -9,14 +9,17 @@ RUN apt-get update && apt-get install -y \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  WORKDIR /app
12
- # Install dependencies
 
13
  COPY package.json /app/package.json
14
  RUN npm install
15
 
16
- # Copy source files
17
  COPY tailwind.config.js /app/tailwind.config.js
18
  COPY static /app/static
19
 
 
 
20
 
21
  # Create a user and set up the environment
22
  RUN useradd -m -u 1000 user
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  WORKDIR /app
12
+
13
+ # Install Node.js dependencies
14
  COPY package.json /app/package.json
15
  RUN npm install
16
 
17
+ # Copy Tailwind configuration and static files
18
  COPY tailwind.config.js /app/tailwind.config.js
19
  COPY static /app/static
20
 
21
+ # Run the Tailwind CSS build script
22
+ RUN npm run publish
23
 
24
  # Create a user and set up the environment
25
  RUN useradd -m -u 1000 user