fix: permissions

This commit is contained in:
Lowder
2026-06-18 04:03:59 +05:00
parent fbc0e7a235
commit 70d55c05d3
3 changed files with 8 additions and 2 deletions
+1
View File
@@ -2,3 +2,4 @@
.idea/
.env
database-cache/
website/database-cache/
+4 -1
View File
@@ -35,7 +35,7 @@ services:
MQTT_HOST: rmqtt
MQTT_PORT: 11883
volumes:
- ./database-cache:/var/cache/cheburcheck/databases
- database-cache:/var/cache/cheburcheck/databases
expose:
- "8000"
@@ -51,3 +51,6 @@ services:
- "1883"
- "11883"
- "6060"
volumes:
database-cache:
+3 -1
View File
@@ -29,7 +29,9 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
apt-get install -y --no-install-recommends libssl3 ca-certificates curl && \
rm -rf /var/lib/apt/lists/* && \
groupadd --system app && \
useradd --system --gid app --home-dir /app --shell /usr/sbin/nologin app
useradd --system --gid app --home-dir /app --shell /usr/sbin/nologin app && \
mkdir -p /var/cache/cheburcheck/databases && \
chown -R app:app /var/cache/cheburcheck
COPY --from=build /build/website/Rocket.toml ./
COPY --from=build /build/main ./