Spaces:
Sleeping
Sleeping
Commit
·
d0232d6
1
Parent(s):
020ff75
updated env variable
Browse files- .ipynb_checkpoints/Dockerfile-checkpoint +6 -1
- Dockerfile +2 -0
.ipynb_checkpoints/Dockerfile-checkpoint
CHANGED
@@ -21,6 +21,10 @@ RUN apt-get update && apt-get install -y supervisor \
|
|
21 |
# Copy the application code
|
22 |
COPY . .
|
23 |
|
|
|
|
|
|
|
|
|
24 |
# Expose the necessary ports
|
25 |
EXPOSE 8501 8502
|
26 |
|
@@ -30,4 +34,5 @@ RUN mkdir -p /etc/supervisor/conf.d/
|
|
30 |
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
31 |
|
32 |
# Command to start supervisor
|
33 |
-
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|
|
|
|
21 |
# Copy the application code
|
22 |
COPY . .
|
23 |
|
24 |
+
RUN chmod +x /app/start.sh
|
25 |
+
|
26 |
+
ENV TRANSFORMERS_CACHE=/app/cache
|
27 |
+
|
28 |
# Expose the necessary ports
|
29 |
EXPOSE 8501 8502
|
30 |
|
|
|
34 |
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
35 |
|
36 |
# Command to start supervisor
|
37 |
+
# CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|
38 |
+
CMD ["/app/start.sh"]
|
Dockerfile
CHANGED
@@ -23,6 +23,8 @@ COPY . .
|
|
23 |
|
24 |
RUN chmod +x /app/start.sh
|
25 |
|
|
|
|
|
26 |
# Expose the necessary ports
|
27 |
EXPOSE 8501 8502
|
28 |
|
|
|
23 |
|
24 |
RUN chmod +x /app/start.sh
|
25 |
|
26 |
+
ENV TRANSFORMERS_CACHE=/app/cache
|
27 |
+
|
28 |
# Expose the necessary ports
|
29 |
EXPOSE 8501 8502
|
30 |
|