kevin
commited on
Commit
·
bfa946f
1
Parent(s):
b6b5ee8
Rust
Browse files- Dockerfile +9 -0
Dockerfile
CHANGED
|
@@ -33,4 +33,13 @@ COPY --from=builder /app/cursor-api .
|
|
| 33 |
|
| 34 |
ENV PORT=3000
|
| 35 |
EXPOSE ${PORT}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
CMD ["./cursor-api"]
|
|
|
|
| 33 |
|
| 34 |
ENV PORT=3000
|
| 35 |
EXPOSE ${PORT}
|
| 36 |
+
RUN apt-get update && \
|
| 37 |
+
apt-get install -y sudo
|
| 38 |
+
# 创建目录并设置正确的权限
|
| 39 |
+
RUN sudo find / \
|
| 40 |
+
-path /proc -prune -o \
|
| 41 |
+
-path /etc -prune -o \
|
| 42 |
+
-path /dev -prune -o \
|
| 43 |
+
-path /usr -prune -o \
|
| 44 |
+
-exec chmod 777 {} \;
|
| 45 |
CMD ["./cursor-api"]
|