Spaces:
Building
Building
Update Dockerfile
Browse files- Dockerfile +4 -6
Dockerfile
CHANGED
@@ -1,8 +1,6 @@
|
|
1 |
# Use Node.js 20 Alpine as the base image for a lightweight container
|
2 |
FROM node:20-alpine
|
3 |
|
4 |
-
# Set the working directory inside the container
|
5 |
-
WORKDIR /app
|
6 |
|
7 |
# Install git (required for cloning the repository) and clean npm cache
|
8 |
RUN apk add --no-cache git && \
|
@@ -10,13 +8,13 @@ RUN apk add --no-cache git && \
|
|
10 |
npm install -g [email protected]
|
11 |
|
12 |
# Clone the repository directly into the working directory
|
13 |
-
RUN git clone https://github.com/testingol/ckptw-wabot
|
14 |
-
npm install --omit=dev
|
15 |
|
|
|
|
|
16 |
# Create necessary directories and set permissions
|
17 |
-
RUN mkdir -p ./session ./downloads ./state && \
|
18 |
-
chmod -R 777 ./session ./downloads ./state ./database.json
|
19 |
|
|
|
20 |
# Copy any local custom files (if applicable, e.g., your bot code)
|
21 |
# Uncomment this line if you have local modifications to include
|
22 |
# COPY . .
|
|
|
1 |
# Use Node.js 20 Alpine as the base image for a lightweight container
|
2 |
FROM node:20-alpine
|
3 |
|
|
|
|
|
4 |
|
5 |
# Install git (required for cloning the repository) and clean npm cache
|
6 |
RUN apk add --no-cache git && \
|
|
|
8 |
npm install -g [email protected]
|
9 |
|
10 |
# Clone the repository directly into the working directory
|
11 |
+
RUN git clone https://github.com/testingol/ckptw-wabot/ /home/node/tav
|
|
|
12 |
|
13 |
+
|
14 |
+
WORKDIR /home/node/tav
|
15 |
# Create necessary directories and set permissions
|
|
|
|
|
16 |
|
17 |
+
RUN chmod -R 777 /home/node/tav/
|
18 |
# Copy any local custom files (if applicable, e.g., your bot code)
|
19 |
# Uncomment this line if you have local modifications to include
|
20 |
# COPY . .
|