Upload 32 files
Browse files- Dockerfile +7 -11
Dockerfile
CHANGED
|
@@ -58,6 +58,13 @@ RUN set -eu && \
|
|
| 58 |
echo "$VERSION_ARG" > /run/version && \
|
| 59 |
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
| 60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
COPY --chmod=755 ./src /run/
|
| 62 |
COPY --chmod=755 ./web /var/www/
|
| 63 |
COPY --chmod=664 ./web/conf/defaults.json /usr/share/novnc
|
|
@@ -74,15 +81,4 @@ ENV CPU_CORES="2"
|
|
| 74 |
ENV RAM_SIZE="2G"
|
| 75 |
ENV DISK_SIZE="64G"
|
| 76 |
|
| 77 |
-
WORKDIR /app
|
| 78 |
-
|
| 79 |
-
# Copy app code
|
| 80 |
-
COPY . .
|
| 81 |
-
|
| 82 |
-
# ybyjngamhtcuaupc gsmt
|
| 83 |
-
|
| 84 |
-
# Make the entire /app directory fully writeable for all users
|
| 85 |
-
RUN chmod -R 777 /app
|
| 86 |
-
|
| 87 |
-
|
| 88 |
ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"]
|
|
|
|
| 58 |
echo "$VERSION_ARG" > /run/version && \
|
| 59 |
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
| 60 |
|
| 61 |
+
RUN set -eu && \
|
| 62 |
+
# Ensure runtime directories exist and are writable by unprivileged users
|
| 63 |
+
mkdir -p /run /run/shm /storage && \
|
| 64 |
+
# /run/shm should be a sticky tmpfs-like directory
|
| 65 |
+
chmod 1777 /run/shm && \
|
| 66 |
+
chmod 0777 /storage || true
|
| 67 |
+
|
| 68 |
COPY --chmod=755 ./src /run/
|
| 69 |
COPY --chmod=755 ./web /var/www/
|
| 70 |
COPY --chmod=664 ./web/conf/defaults.json /usr/share/novnc
|
|
|
|
| 81 |
ENV RAM_SIZE="2G"
|
| 82 |
ENV DISK_SIZE="64G"
|
| 83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
ENTRYPOINT ["/usr/bin/tini", "-s", "/run/entry.sh"]
|