Spaces:
Runtime error
Runtime error
circulartext
commited on
Commit
•
c55fbb8
1
Parent(s):
884598d
Update Dockerfile
Browse files- Dockerfile +11 -2
Dockerfile
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
# Use your base Docker image from Docker Hub
|
2 |
FROM circulartextapp/circulartextai
|
3 |
|
|
|
|
|
|
|
4 |
# Set the working directory
|
5 |
WORKDIR /code
|
6 |
|
@@ -14,5 +17,11 @@ COPY . .
|
|
14 |
# Create a directory for storing files and set permissions
|
15 |
RUN mkdir /code/files && chmod 777 /code/files
|
16 |
|
17 |
-
#
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
# Use your base Docker image from Docker Hub
|
2 |
FROM circulartextapp/circulartextai
|
3 |
|
4 |
+
# Set a non-root user
|
5 |
+
USER appuser
|
6 |
+
|
7 |
# Set the working directory
|
8 |
WORKDIR /code
|
9 |
|
|
|
17 |
# Create a directory for storing files and set permissions
|
18 |
RUN mkdir /code/files && chmod 777 /code/files
|
19 |
|
20 |
+
# Copy the entrypoint script
|
21 |
+
COPY ./entrypoint.sh /entrypoint.sh
|
22 |
+
|
23 |
+
# Give execute permission to the entrypoint script
|
24 |
+
RUN chmod +x /entrypoint.sh
|
25 |
+
|
26 |
+
# Specify the entrypoint
|
27 |
+
ENTRYPOINT ["/entrypoint.sh"]
|