rabil commited on
Commit
d51ffcb
·
verified ·
1 Parent(s): 1289349

chore: Update Dockerfile to include supervisor configuration for Redis and SRH

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -24,6 +24,8 @@ WORKDIR /app
24
 
25
  COPY --from=builderish /app/_build/prod/rel/prod/ ./_build/prod/rel/prod/
26
 
 
 
27
  ARG SRH_MODE
28
  ENV SRH_MODE=${SRH_MODE}
29
 
@@ -37,6 +39,8 @@ EXPOSE 7860
37
 
38
  COPY docker/supervisor.conf /etc/supervisor/conf.d/supervisor.conf
39
 
 
 
40
  ENV MIX_ENV=prod
41
 
42
  CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisor.conf"]
 
24
 
25
  COPY --from=builderish /app/_build/prod/rel/prod/ ./_build/prod/rel/prod/
26
 
27
+ USER rabil
28
+
29
  ARG SRH_MODE
30
  ENV SRH_MODE=${SRH_MODE}
31
 
 
39
 
40
  COPY docker/supervisor.conf /etc/supervisor/conf.d/supervisor.conf
41
 
42
+ RUN chown -R rabil /app
43
+
44
  ENV MIX_ENV=prod
45
 
46
  CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisor.conf"]