Spaces:
Runtime error
Runtime error
fix entrypoint.sh permissions
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -37,6 +37,9 @@ WORKDIR /app
|
|
| 37 |
# Copy the source code into the container.
|
| 38 |
COPY . .
|
| 39 |
|
|
|
|
|
|
|
|
|
|
| 40 |
# Create a non-privileged user that the app will run under.
|
| 41 |
# See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user
|
| 42 |
|
|
@@ -66,8 +69,8 @@ USER 1001
|
|
| 66 |
# Copy the entrypoint script
|
| 67 |
COPY entrypoint.sh /entrypoint.sh
|
| 68 |
|
| 69 |
-
|
| 70 |
-
|
| 71 |
|
| 72 |
# Set the entrypoint
|
| 73 |
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
| 37 |
# Copy the source code into the container.
|
| 38 |
COPY . .
|
| 39 |
|
| 40 |
+
# Make the entrypoint script executable
|
| 41 |
+
RUN chmod +x entrypoint.sh
|
| 42 |
+
|
| 43 |
# Create a non-privileged user that the app will run under.
|
| 44 |
# See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user
|
| 45 |
|
|
|
|
| 69 |
# Copy the entrypoint script
|
| 70 |
COPY entrypoint.sh /entrypoint.sh
|
| 71 |
|
| 72 |
+
|
| 73 |
+
|
| 74 |
|
| 75 |
# Set the entrypoint
|
| 76 |
ENTRYPOINT ["/entrypoint.sh"]
|