mirror of
https://github.com/LowderPlay/cheburcheck.git
synced 2026-10-12 23:07:53 +00:00
fix: permissions
This commit is contained in:
parent
fbc0e7a235
commit
70d55c05d3
3 changed files with 8 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -2,3 +2,4 @@
|
|||
.idea/
|
||||
.env
|
||||
database-cache/
|
||||
website/database-cache/
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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 ./
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue