Update Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -4,7 +4,7 @@ FROM --platform=linux/amd64 lissomai/secondo:0.1
|
|
| 4 |
WORKDIR /code
|
| 5 |
|
| 6 |
# Copy any additional files if needed
|
| 7 |
-
COPY . .
|
| 8 |
|
| 9 |
# Expose the port your app uses (typically 7860 for Spaces)
|
| 10 |
EXPOSE 7860
|
|
@@ -17,6 +17,7 @@ ENV PORT=7860
|
|
| 17 |
|
| 18 |
# Specify the command to run your application
|
| 19 |
# Start Redis server in the background using the custom config file and then start the app
|
|
|
|
| 20 |
CMD redis-server /etc/redis/redis.conf & gunicorn "app.main:app" \
|
| 21 |
--workers $WORKERS \
|
| 22 |
--worker-class "uvicorn.workers.UvicornWorker" \
|
|
|
|
| 4 |
WORKDIR /code
|
| 5 |
|
| 6 |
# Copy any additional files if needed
|
| 7 |
+
#COPY . .
|
| 8 |
|
| 9 |
# Expose the port your app uses (typically 7860 for Spaces)
|
| 10 |
EXPOSE 7860
|
|
|
|
| 17 |
|
| 18 |
# Specify the command to run your application
|
| 19 |
# Start Redis server in the background using the custom config file and then start the app
|
| 20 |
+
CMD chmod a+r /etc/redis/redis.conf
|
| 21 |
CMD redis-server /etc/redis/redis.conf & gunicorn "app.main:app" \
|
| 22 |
--workers $WORKERS \
|
| 23 |
--worker-class "uvicorn.workers.UvicornWorker" \
|