Skip to content

Commit fc076a7

Browse files
committed
fix permissions
1 parent 2490dce commit fc076a7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FROM python:3.11.12-slim
22
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/
33

4-
RUN groupadd bot && \
5-
useradd --gid bot --create-home bot && \
4+
RUN groupadd --gid 4242 bot && \
5+
useradd --uid 4242 --gid bot bot --create-home && \
66
rm -rf /var/cache/* /var/log/*
77

88
USER bot

ansible/deploy-playbook.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
group:
6666
name: bot
6767
state: present
68+
gid: 4242
6869

6970
- name: Ensure 'bot' user exists
7071
user:
@@ -73,6 +74,7 @@
7374
home: /home/bot
7475
create_home: yes
7576
shell: /usr/sbin/nologin
77+
uid: 4242
7678

7779
- name: Create registration_log.txt in bot's home directory
7880
file:

0 commit comments

Comments
 (0)