Update Dockerfile
Browse files- Dockerfile +8 -0
Dockerfile
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
|
|
| 1 |
FROM node:18
|
| 2 |
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
|
|
|
| 5 |
RUN git clone https://github.com/reaperofssa/Session .
|
| 6 |
|
|
|
|
| 7 |
RUN yarn install
|
| 8 |
|
|
|
|
| 9 |
RUN chmod -R 777 /app \
|
| 10 |
&& chmod -R 777 /app/session \
|
| 11 |
&& chmod 666 /app/messages.json \
|
|
@@ -15,6 +21,8 @@ RUN chmod -R 777 /app \
|
|
| 15 |
&& chmod +x /app/Temp \
|
| 16 |
&& chmod +x /app/uploads
|
| 17 |
|
|
|
|
| 18 |
EXPOSE 7860
|
| 19 |
|
|
|
|
| 20 |
CMD ["bash", "./start.sh"]
|
|
|
|
| 1 |
+
# Use an official Node.js image as the base
|
| 2 |
FROM node:18
|
| 3 |
|
| 4 |
+
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Clone the repository into the /app directory
|
| 8 |
+
# Replace <REPO_URL> with the actual repository URL
|
| 9 |
RUN git clone https://github.com/reaperofssa/Session .
|
| 10 |
|
| 11 |
+
# Install dependencies
|
| 12 |
RUN yarn install
|
| 13 |
|
| 14 |
+
# Set permissions for the entire project and specific files/directories
|
| 15 |
RUN chmod -R 777 /app \
|
| 16 |
&& chmod -R 777 /app/session \
|
| 17 |
&& chmod 666 /app/messages.json \
|
|
|
|
| 21 |
&& chmod +x /app/Temp \
|
| 22 |
&& chmod +x /app/uploads
|
| 23 |
|
| 24 |
+
# Expose the desired port (adjust as needed)
|
| 25 |
EXPOSE 7860
|
| 26 |
|
| 27 |
+
# Start the application using start.sh
|
| 28 |
CMD ["bash", "./start.sh"]
|