Mbonea commited on
Commit
c0ccfc8
·
verified ·
1 Parent(s): f45fe9a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -31
Dockerfile CHANGED
@@ -1,31 +1,31 @@
1
- FROM ghcr.io/android-sms-gateway/server:latest AS server
2
-
3
- FROM debian:bookworm-slim
4
-
5
- RUN apt-get update && apt-get install -y \
6
- supervisor \
7
- ca-certificates \
8
- gettext-base \
9
- && rm -rf /var/lib/apt/lists/*
10
-
11
- COPY --from=server /app/app /app/app
12
-
13
- # Template config — secrets injected at runtime via entrypoint.sh
14
- COPY config.yml /app/config.yml.template
15
-
16
- # Aiven CA cert (.pem renamed to .crt for update-ca-certificates)
17
- COPY aiven-ca.pem /usr/local/share/ca-certificates/aiven-ca.crt
18
- RUN update-ca-certificates
19
-
20
- COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
21
- COPY entrypoint.sh /app/entrypoint.sh
22
-
23
- RUN useradd -m -u 1000 appuser \
24
- && chown -R appuser:appuser /app \
25
- && chmod +x /app/entrypoint.sh
26
-
27
- USER 1000
28
-
29
- EXPOSE 3001
30
-
31
- CMD ["/app/entrypoint.sh"]
 
1
+ FROM ghcr.io/android-sms-gateway/server:latest AS server
2
+
3
+ FROM debian:bookworm-slim
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ supervisor \
7
+ ca-certificates \
8
+ gettext-base \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ COPY --from=server /app/app /app/app
12
+
13
+ # Template config — secrets injected at runtime via entrypoint.sh
14
+ COPY config.yml /app/config.yml.template
15
+
16
+ # Aiven CA cert (.pem renamed to .crt for update-ca-certificates)
17
+ COPY aiven-ca.pem /usr/local/share/ca-certificates/aiven-ca.crt
18
+ RUN update-ca-certificates
19
+
20
+ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
21
+ COPY entrypoint.sh /app/entrypoint.sh
22
+
23
+ RUN useradd -m -u 1000 appuser \
24
+ && chown -R appuser:appuser /app \
25
+ && chmod +x /app/entrypoint.sh
26
+
27
+ USER 1000
28
+
29
+ EXPOSE 3001
30
+
31
+ CMD ["/app/entrypoint.sh"]