Commit
·
05c20d6
1
Parent(s):
3dc1171
Moved chmod command to before user switch in Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -63,6 +63,8 @@ COPY --from=builder /install /usr/local/lib/python3.11/site-packages/
|
|
63 |
# Entrypoint helps to switch between Gradio and Lambda mode
|
64 |
COPY entrypoint.sh /entrypoint.sh
|
65 |
|
|
|
|
|
66 |
# Switch to the "user" user
|
67 |
USER user
|
68 |
|
@@ -87,7 +89,7 @@ WORKDIR $HOME/app
|
|
87 |
# Copy the app code to the container
|
88 |
COPY --chown=user . $HOME/app
|
89 |
|
90 |
-
|
91 |
|
92 |
ENTRYPOINT [ "/entrypoint.sh" ]
|
93 |
|
|
|
63 |
# Entrypoint helps to switch between Gradio and Lambda mode
|
64 |
COPY entrypoint.sh /entrypoint.sh
|
65 |
|
66 |
+
RUN chmod +x /entrypoint.sh
|
67 |
+
|
68 |
# Switch to the "user" user
|
69 |
USER user
|
70 |
|
|
|
89 |
# Copy the app code to the container
|
90 |
COPY --chown=user . $HOME/app
|
91 |
|
92 |
+
|
93 |
|
94 |
ENTRYPOINT [ "/entrypoint.sh" ]
|
95 |
|