Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -1,7 +1,12 @@
|
|
| 1 |
FROM mbonea1234/manager:latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
RUN chown -R admin:admin /srv
|
| 4 |
RUN chmod 755 /srv
|
| 5 |
USER admin
|
| 6 |
EXPOSE 7860
|
| 7 |
-
CMD python -m src & python -m http.server
|
|
|
|
| 1 |
FROM mbonea1234/manager:latest
|
| 2 |
+
# Create a non-root user
|
| 3 |
+
RUN useradd -ms /bin/bash admin
|
| 4 |
+
|
| 5 |
+
# Set the working directory
|
| 6 |
+
WORKDIR /srv
|
| 7 |
|
| 8 |
RUN chown -R admin:admin /srv
|
| 9 |
RUN chmod 755 /srv
|
| 10 |
USER admin
|
| 11 |
EXPOSE 7860
|
| 12 |
+
CMD python -m src & python -m http.server 7860 --directory /src/Search_bot_plugins/Assets
|