Spaces:
Sleeping
Sleeping
chore: Update Dockerfile to include supervisor configuration for Redis, SRH, and user management
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -18,7 +18,10 @@ RUN mix release
|
|
18 |
|
19 |
FROM elixir:1.13.4-slim
|
20 |
|
21 |
-
RUN apt-get update && apt-get install -y redis-server supervisor
|
|
|
|
|
|
|
22 |
|
23 |
WORKDIR /app
|
24 |
|
|
|
18 |
|
19 |
FROM elixir:1.13.4-slim
|
20 |
|
21 |
+
RUN apt-get update && apt-get install -y redis-server supervisor adduser
|
22 |
+
|
23 |
+
RUN useradd -m rabil && echo "rabil:rabil" | chpasswd && adduser rabil sudo
|
24 |
+
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
25 |
|
26 |
WORKDIR /app
|
27 |
|