Spaces:
Sleeping
Sleeping
chore: Update Dockerfile to fix ownership issue with /app directory
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
|
@@ -40,17 +40,16 @@ ENV SRH_CONNECTION_STRING=${SRH_CONNECTION_STRING}
|
|
| 40 |
|
| 41 |
ENV SRH_PORT=7860
|
| 42 |
EXPOSE 7860
|
|
|
|
| 43 |
|
| 44 |
COPY docker/supervisor.conf /etc/supervisor/conf.d/supervisor.conf
|
| 45 |
COPY docker/redis.conf /etc/redis/redis.conf
|
| 46 |
|
| 47 |
-
RUN sudo chmod -R 777 /etc/redis/
|
| 48 |
-
|
| 49 |
-
RUN sudo chown -R rabil /app
|
| 50 |
-
|
| 51 |
RUN sudo mkdir -p /etc/lib/redis
|
|
|
|
|
|
|
|
|
|
| 52 |
RUN sudo chmod -R 777 /etc/lib/redis
|
| 53 |
|
| 54 |
-
ENV MIX_ENV=prod
|
| 55 |
|
| 56 |
CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisor.conf"]
|
|
|
|
| 40 |
|
| 41 |
ENV SRH_PORT=7860
|
| 42 |
EXPOSE 7860
|
| 43 |
+
ENV MIX_ENV=prod
|
| 44 |
|
| 45 |
COPY docker/supervisor.conf /etc/supervisor/conf.d/supervisor.conf
|
| 46 |
COPY docker/redis.conf /etc/redis/redis.conf
|
| 47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
RUN sudo mkdir -p /etc/lib/redis
|
| 49 |
+
|
| 50 |
+
RUN sudo chmod -R 777 /etc/redis/
|
| 51 |
+
RUN sudo chmod -R 777 /app
|
| 52 |
RUN sudo chmod -R 777 /etc/lib/redis
|
| 53 |
|
|
|
|
| 54 |
|
| 55 |
CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisor.conf"]
|