Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -20,10 +20,13 @@ RUN npm install
|
|
| 20 |
# Copy entrypoint script
|
| 21 |
COPY docker-entrypoint.sh /usr/local/bin/
|
| 22 |
|
| 23 |
-
# Change permissions of the entrypoint script (
|
| 24 |
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
| 25 |
|
| 26 |
-
#
|
|
|
|
|
|
|
|
|
|
| 27 |
RUN chown -R appuser:appuser /app
|
| 28 |
|
| 29 |
# Switch to the non-root user
|
|
|
|
| 20 |
# Copy entrypoint script
|
| 21 |
COPY docker-entrypoint.sh /usr/local/bin/
|
| 22 |
|
| 23 |
+
# Change permissions of the entrypoint script (before switching users)
|
| 24 |
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
| 25 |
|
| 26 |
+
# Ensure that the appuser has permissions on the config directory
|
| 27 |
+
RUN chown -R appuser:appuser /app/config
|
| 28 |
+
|
| 29 |
+
# Ensure appuser owns all files (you can adjust this based on the specific needs)
|
| 30 |
RUN chown -R appuser:appuser /app
|
| 31 |
|
| 32 |
# Switch to the non-root user
|