Spaces:
Running
Running
Commit
·
63368e0
1
Parent(s):
de17b8b
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -19,7 +19,7 @@ RUN if id "$USER_ID" >/dev/null 2>&1; then \
|
|
19 |
fi
|
20 |
|
21 |
# Set appropriate permissions for the application directory
|
22 |
-
RUN chown -R user:user /app && chmod -R
|
23 |
|
24 |
# Switch to the user for improved security
|
25 |
USER user
|
@@ -36,7 +36,7 @@ FROM base
|
|
36 |
# Copy gosu from the packages image
|
37 |
COPY --from=packages /usr/sbin/gosu /usr/sbin/gosu
|
38 |
|
39 |
-
# Set the entrypoint script as executable
|
40 |
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
41 |
RUN chmod +x /usr/local/bin/entrypoint.sh
|
42 |
|
|
|
19 |
fi
|
20 |
|
21 |
# Set appropriate permissions for the application directory
|
22 |
+
RUN chown -R user:user /app && chmod -R 755 /app
|
23 |
|
24 |
# Switch to the user for improved security
|
25 |
USER user
|
|
|
36 |
# Copy gosu from the packages image
|
37 |
COPY --from=packages /usr/sbin/gosu /usr/sbin/gosu
|
38 |
|
39 |
+
# Set the entrypoint script as executable during the copy
|
40 |
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
41 |
RUN chmod +x /usr/local/bin/entrypoint.sh
|
42 |
|