Spaces:
Sleeping
Sleeping
Commit
·
c64f8c4
1
Parent(s):
3227eb4
update: config
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
# Use the official Node.js v18 image as the base image
|
2 |
FROM node:18
|
3 |
|
4 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
# Set the working directory inside the container
|
7 |
WORKDIR /app
|
|
|
1 |
# Use the official Node.js v18 image as the base image
|
2 |
FROM node:18
|
3 |
|
4 |
+
RUN if id -u 1000 &> /dev/null; then \
|
5 |
+
uid=$(shuf -i 1001-65535 -n 1) \
|
6 |
+
&& useradd -m -u $uid user; \
|
7 |
+
else \
|
8 |
+
useradd -m -u 1000 user; \
|
9 |
+
fi
|
10 |
|
11 |
# Set the working directory inside the container
|
12 |
WORKDIR /app
|